Skip to content

Commit a8b3853

Browse files
authored
ci: add lint workflow (#67)
* ci: add lint workflow Signed-off-by: Grant Timmerman <[email protected]> * ci: specify java version Signed-off-by: Grant Timmerman <[email protected]> * ci: build before lint Signed-off-by: Grant Timmerman <[email protected]>
1 parent 270f4ec commit a8b3853

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Java Lint CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up JDK
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 11.x
16+
- name: Build API with Maven
17+
run: (cd functions-framework-api/ && mvn install)
18+
- name: Lint Functions Framework API
19+
run: (cd functions-framework-api/ && mvn clean verify -DskipTests -P lint)
20+
- name: Build Invoker with Maven
21+
run: (cd functions-framework-api/ && mvn install)
22+
- name: Lint Invoker
23+
run: (cd invoker/ && mvn clean verify -DskipTests -P lint)

0 commit comments

Comments
 (0)