@@ -13,14 +13,14 @@ jobs:
13
13
strategy :
14
14
fail-fast : false
15
15
matrix :
16
- java : [ 16 ]
16
+ java : [ 16, 17 ]
17
17
steps :
18
18
- uses : actions/checkout@v2
19
19
- name : Set up JDK
20
20
uses : actions/setup-java@v2
21
21
with :
22
22
java-version : ${{ matrix.java }}
23
- distribution : ' adopt '
23
+ distribution : ' zulu '
24
24
- name : Cached .m2
25
25
uses : actions/cache@v2.1.6
26
26
with :
@@ -39,14 +39,14 @@ jobs:
39
39
fail-fast : false
40
40
matrix :
41
41
os : [ ubuntu, windows ]
42
- java : [ 8, 11, 16 ]
42
+ java : [ 8.0.192, 8, 11.0.3, 11, 16, 17 ]
43
43
steps :
44
44
- uses : actions/checkout@v2
45
45
- name : Set up JDK
46
46
uses : actions/setup-java@v2
47
47
with :
48
48
java-version : ${{ matrix.java }}
49
- distribution : ' adopt '
49
+ distribution : ' zulu '
50
50
- uses : actions/cache@v2.1.6
51
51
with :
52
52
path : ~/.m2/repository
@@ -55,22 +55,22 @@ jobs:
55
55
${{ runner.os }}-maven-
56
56
# JDK 8
57
57
- name : Maven Install without Code Coverage
58
- if : matrix.os == 'windows' && matrix.java == '8'
58
+ if : matrix.os == 'windows' && startsWith( matrix.java, '8')
59
59
run : mvn -B clean install --file pom.xml
60
60
- name : Maven Install with Code Coverage
61
- if : matrix.os != 'windows' && matrix.java == '8'
61
+ if : matrix.os != 'windows' && startsWith( matrix.java, '8')
62
62
run : mvn -B clean install -D enable-ci --file pom.xml
63
63
- name : Codecov Report
64
- if : matrix.os != 'windows' && matrix.java == '8'
64
+ if : matrix.os != 'windows' && startsWith( matrix.java, '8')
65
65
uses : codecov/codecov-action@v2.1.0
66
66
# JDK 11+
67
67
- name : Maven Install without Code Coverage
68
- if : matrix.os == 'windows' && matrix.java != '8'
68
+ if : matrix.os == 'windows' && !startsWith( matrix.java, '8')
69
69
env :
70
70
MAVEN_OPTS : ${{ env.JAVA_11_PLUS_MAVEN_OPTS }}
71
71
run : mvn -B clean install --file pom.xml "-Dsurefire.argLine=--add-opens java.base/java.net=ALL-UNNAMED"
72
72
- name : Maven Install with Code Coverage
73
- if : matrix.os != 'windows' && matrix.java != '8'
73
+ if : matrix.os != 'windows' && !startsWith( matrix.java, '8')
74
74
env :
75
75
MAVEN_OPTS : ${{ env.JAVA_11_PLUS_MAVEN_OPTS }}
76
76
run : mvn -B clean install -D enable-ci --file pom.xml "-Dsurefire.argLine=--add-opens java.base/java.net=ALL-UNNAMED"
0 commit comments