Skip to content

Commit ece1bf4

Browse files
authored
CI: Add CI Checks for Java 17 (#318)
* ci: use matrix strategy to use jdk 11 and 17 on building workflow * ci: remove java.opt options * ci: add java on build_reactive.strategy.matrix
1 parent 913ee37 commit ece1bf4

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,21 @@ jobs:
2929
strategy:
3030
matrix:
3131
os: [ubuntu-latest, windows-latest]
32+
java: [
33+
{ 'version': '11' },
34+
{ 'version': '17' }
35+
]
3236
steps:
3337
- name: Prepare git
3438
run: git config --global core.autocrlf false
3539
if: startsWith(matrix.os, 'windows')
3640

3741
- uses: actions/checkout@v3
38-
- name: Set up JDK 11
42+
- name: Set up JDK ${{matrix.java.version}}
3943
uses: actions/setup-java@v3
4044
with:
4145
distribution: temurin
42-
java-version: 11
46+
java-version: ${{matrix.java.version}}
4347
cache: 'maven'
4448

4549
- name: Build with Maven
@@ -51,17 +55,21 @@ jobs:
5155
strategy:
5256
matrix:
5357
os: [ubuntu-latest, windows-latest]
58+
java: [
59+
{ 'version': '11' },
60+
{ 'version': '17' }
61+
]
5462
steps:
5563
- name: Prepare git
5664
run: git config --global core.autocrlf false
5765
if: startsWith(matrix.os, 'windows')
5866

5967
- uses: actions/checkout@v3
60-
- name: Set up JDK 11
68+
- name: Set up JDK ${{matrix.java.version}}
6169
uses: actions/setup-java@v3
6270
with:
6371
distribution: temurin
64-
java-version: 11
72+
java-version: ${{matrix.java.version}}
6573
cache: 'maven'
6674

6775
- name: Build with Maven

0 commit comments

Comments
 (0)