Skip to content

Commit 80dfb3e

Browse files
committed
Test with GitHub Actions
1 parent fd21b23 commit 80dfb3e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build/test
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
distribution: [ 'zulu', 'adopt' ]
11+
java: [8, 11, 13, 15]
12+
fail-fast: false
13+
name: JDK ${{ matrix.java }} (${{ matrix.distribution }})
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up JDK
18+
uses: actions/setup-java@v2
19+
with:
20+
distribution: ${{ matrix.distribution }}
21+
java-version: ${{ matrix.java }}
22+
- name: Cache local Maven repository
23+
uses: actions/cache@v2
24+
with:
25+
path: ~/.m2/repository
26+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
27+
restore-keys: |
28+
${{ runner.os }}-maven-
29+
- name: Test with Maven
30+
run: mvn verify -B --file pom.xml

0 commit comments

Comments
 (0)