-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (37 loc) · 1.19 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Automated tests
on: push
jobs:
test_java8:
name: Execute all automated tests on Java 8
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-java8-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-java8-
- name: Set JAVA_HOME to included JDK 8
run: echo JAVA_HOME=$JAVA_HOME_8_X64 >> $GITHUB_ENV
- name: Run Maven install (includes tests)
run: mvn install
test_java11:
name: Execute all automated tests on Java 11
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-java11-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-java11-
- name: Set JAVA_HOME to included JDK 11
run: echo JAVA_HOME=$JAVA_HOME_11_X64 >> $GITHUB_ENV
- name: Run Maven install (includes tests)
run: mvn install