Skip to content

Commit bcd1215

Browse files
committed
use jdk lts
1 parent 4acecf9 commit bcd1215

File tree

1 file changed

+3
-29
lines changed

1 file changed

+3
-29
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
java: [7, 8, 9, 10, 11 ]
10+
java: [7, 8, 11, 17 ]
1111
steps:
1212
- uses: actions/checkout@v2
1313
- name: Setup java
@@ -16,31 +16,5 @@ jobs:
1616
java-version: ${{ matrix.java }}
1717
- name: Build with Maven
1818
run: |
19-
mvn clean package -DskipTests
20-
mvn test
21-
22-
build_jdk_ge_12:
23-
runs-on: ubuntu-latest
24-
strategy:
25-
matrix:
26-
java: [12, 13, 14, 15]
27-
steps:
28-
- uses: actions/checkout@v2
29-
- name: Set up JDK 1.8
30-
uses: actions/setup-java@v1
31-
with:
32-
java-version: 8
33-
- name: save java8 home
34-
run: |
35-
export JAVA8_HOME=$JAVA_HOME && echo $JAVA8_HOME
36-
echo "export JAVA8_HOME=$JAVA_HOME" > ~/.testenv
37-
38-
- name: Setup java
39-
uses: actions/setup-java@v1
40-
with:
41-
java-version: ${{ matrix.java }}
42-
- name: Build with Maven
43-
run: |
44-
source ~/.testenv
45-
mvn -Dmaven.compiler.fork=true -Dmaven.compiler.executable=$JAVA8_HOME/bin/javac clean package -DskipTests
46-
mvn -Dmaven.compiler.fork=true -Dmaven.compiler.executable=$JAVA8_HOME/bin/javac test
19+
mvn clean package -DskipTests --batch-mode
20+
mvn test --batch-mode

0 commit comments

Comments
 (0)