Skip to content

Commit c7f10b5

Browse files
authored
Setup GitHub Actions
1 parent 40c0600 commit c7f10b5

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Tests
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
jdk: ["11", "8"]
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up JDK 11
25+
uses: actions/setup-java@v2
26+
with:
27+
java-version: ${{ matrix.jdk }}
28+
distribution: 'adopt'
29+
- name: MVN Install
30+
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip -B -V
31+
- name: Build
32+
run: mvn clean compile -U
33+
- name: Unit Tests
34+
run: mvn test -Punit-tests
35+
- name: Integration Tests
36+
run: mvn test -Pintegration-tests

0 commit comments

Comments
 (0)