@@ -2,14 +2,18 @@ name: CI
22
33on : [push, pull_request]
44
5+ # this is required by spotless for JDK 16+
6+ env :
7+ JAVA_11_PLUS_MAVEN_OPTS : " --add-opens jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED"
58
69jobs :
710 build :
811 name : build-only (Java ${{ matrix.java }})
912 runs-on : ubuntu-latest
1013 strategy :
14+ fail-fast : false
1115 matrix :
12- java : [ 13 ]
16+ java : [ 16 ]
1317 steps :
1418 - uses : actions/checkout@v2
1519 - name : Set up JDK
@@ -24,11 +28,14 @@ jobs:
2428 restore-keys : |
2529 ${{ runner.os }}-maven-
2630 - name : Maven Install (skipTests)
31+ env :
32+ MAVEN_OPTS : ${{ env.JAVA_11_PLUS_MAVEN_OPTS }}
2733 run : mvn -B install -DskipTests -D enable-ci --file pom.xml
2834 site :
2935 name : site (Java ${{ matrix.java }})
3036 runs-on : ubuntu-latest
3137 strategy :
38+ fail-fast : false
3239 matrix :
3340 java : [ 8, 11 ]
3441 steps :
4956 name : test (${{ matrix.os }}, Java ${{ matrix.java }})
5057 runs-on : ${{ matrix.os }}-latest
5158 strategy :
59+ fail-fast : false
5260 matrix :
5361 os : [ ubuntu, windows ]
54- java : [ 8, 11, 13, 15-ea ]
62+ java : [ 8, 11, 16 ]
5563 steps :
5664 - uses : actions/checkout@v2
5765 - name : Set up JDK
6472 key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
6573 restore-keys : |
6674 ${{ runner.os }}-maven-
75+ # JDK 8
6776 - name : Maven Install without Code Coverage
68- if : matrix.os == 'windows'
77+ if : matrix.os == 'windows' && matrix.java == '8'
6978 run : mvn -B install --file pom.xml
7079 - name : Maven Install with Code Coverage
71- if : matrix.os != 'windows'
80+ if : matrix.os != 'windows' && matrix.java == '8'
81+ run : mvn -B install -D enable-ci --file pom.xml
82+ # JDK 11+
83+ - name : Maven Install without Code Coverage
84+ if : matrix.os == 'windows' && matrix.java != '8'
85+ env :
86+ MAVEN_OPTS : ${{ env.JAVA_11_PLUS_MAVEN_OPTS }}
87+ run : mvn -B install --file pom.xml
88+ - name : Maven Install with Code Coverage
89+ if : matrix.os != 'windows' && matrix.java != '8'
90+ env :
91+ MAVEN_OPTS : ${{ env.JAVA_11_PLUS_MAVEN_OPTS }}
7292 run : mvn -B install -D enable-ci --file pom.xml
0 commit comments