Skip to content

Commit 13951b1

Browse files
committed
Add GitHub Actions workflow for running tests
1 parent 65fa64f commit 13951b1

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/maven.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
build:
11+
runs-on: 'ubuntu-latest'
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
java_version: ['8', '11', '14']
16+
env:
17+
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up JDK
21+
uses: joschi/setup-jdk@v1
22+
with:
23+
java-version: ${{ matrix.java_version }}
24+
- uses: actions/cache@v1
25+
with:
26+
path: ~/.m2/repository
27+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
28+
restore-keys: |
29+
${{ runner.os }}-maven-
30+
- name: Build with Maven
31+
run: ./mvnw -V -B -ff install '-DskipTests=true' '-Dmaven.javadoc.skip=true'
32+
- name: Run tests
33+
run: ./mvnw -V -B -ff verify

0 commit comments

Comments
 (0)