Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Commit 402cb16

Browse files
authored
Add github action PR build (#2078)
* Add a set of github action workflows to migrate off travis. Just three for testing right now. * More GHA fixes. * Fix build. * one more fix. * Remove Java11 as it won't work iwthout massive changes/dropping Java7 support, likely.
1 parent 3d7f0b5 commit 402cb16

File tree

4 files changed

+118
-0
lines changed

4 files changed

+118
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build Checker
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
name: Build Checker
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/[email protected]
14+
with:
15+
fetch-depth: 0
16+
- id: setup-java
17+
name: Setup Java 8
18+
uses: actions/setup-java@v2
19+
with:
20+
distribution: adopt
21+
java-version: 8
22+
- uses: burrunan/[email protected]
23+
with:
24+
remote-build-cache-proxy-enabled: false
25+
arguments: clean assemble -PcheckerFramework=true
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build Gradle Examples
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
name: Build Gradle Examples Ubuntu
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/[email protected]
14+
with:
15+
fetch-depth: 0
16+
- id: setup-java
17+
name: Setup Java 8
18+
uses: actions/setup-java@v2
19+
with:
20+
distribution: adopt
21+
java-version: 8
22+
- uses: burrunan/[email protected]
23+
with:
24+
remote-build-cache-proxy-enabled: false
25+
- name: Build Examples
26+
working-directory: ./examples
27+
run: ./gradlew clean assemble --stacktrace && ./gradlew check && ./gradlew verGJF
28+
- name: Build Spring Servlet example
29+
working-directory: ./examples/spring/servlet
30+
run: ./gradlew clean assemble --stacktrace && ./gradlew check && ./gradlew verGJF
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build Maven Examples
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
name: Build Maven Examples Ubuntu
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/[email protected]
14+
with:
15+
fetch-depth: 0
16+
- id: setup-java
17+
name: Setup Java 8
18+
uses: actions/setup-java@v2
19+
with:
20+
distribution: adopt
21+
java-version: 8
22+
- name: Build Examples
23+
working-directory: ./examples
24+
run: mvn --batch-mode --update-snapshots clean package appassembler:assemble -e
25+
- name: Build Spring Servlet example
26+
working-directory: ./examples/spring/servlet
27+
run: mvn --batch-mode --update-snapshots clean package appassembler:assemble -e

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os:
15+
- macos-latest
16+
- ubuntu-18.04
17+
java:
18+
- 8
19+
# TODO: Java 11 build doesn't work due to Java7 target.
20+
include:
21+
- os: ubuntu-18.04
22+
java: 8
23+
coverage: true
24+
steps:
25+
- uses: actions/[email protected]
26+
with:
27+
fetch-depth: 0
28+
- id: setup-java
29+
name: Setup Java ${{ matrix.java }}
30+
uses: actions/setup-java@v2
31+
with:
32+
distribution: adopt
33+
java-version: ${{ matrix.java }}
34+
- run: ./gradlew clean assemble check --stacktrace
35+
# TODO: Run jacocoTestReport
36+
# TODO: Run verGJF

0 commit comments

Comments
 (0)