Skip to content

Commit

Permalink
ci: add lint workflow (#67)
Browse files Browse the repository at this point in the history
* ci: add lint workflow

Signed-off-by: Grant Timmerman <timmerman+devrel@google.com>

* ci: specify java version

Signed-off-by: Grant Timmerman <timmerman+devrel@google.com>

* ci: build before lint

Signed-off-by: Grant Timmerman <timmerman+devrel@google.com>
  • Loading branch information
grant authored Sep 24, 2020
1 parent 270f4ec commit a8b3853
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Java Lint CI
on:
push:
branches:
- master
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11.x
- name: Build API with Maven
run: (cd functions-framework-api/ && mvn install)
- name: Lint Functions Framework API
run: (cd functions-framework-api/ && mvn clean verify -DskipTests -P lint)
- name: Build Invoker with Maven
run: (cd functions-framework-api/ && mvn install)
- name: Lint Invoker
run: (cd invoker/ && mvn clean verify -DskipTests -P lint)

0 comments on commit a8b3853

Please sign in to comment.