Skip to content

Commit 9a56c66

Browse files
committed
JDK compatibility check
1 parent f243c41 commit 9a56c66

File tree

1 file changed

+41
-6
lines changed

1 file changed

+41
-6
lines changed

.github/workflows/build_maven_compatibility.yml

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ on:
1616
- develop
1717

1818
jobs:
19-
build:
20-
runs-on: ubuntu-latest
19+
check-main:
20+
runs-on: ${{ matrix.os }}
2121
strategy:
2222
matrix:
23-
distribution: [ 'corretto', 'temurin' ]
24-
java: [ '8', '11', '17' ]
25-
name: Java ${{ matrix.Java }} (${{ matrix.distribution }}) sample
23+
distribution: [ 'corretto' ]
24+
java: [ '11', '17' ]
25+
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
26+
name: Java ${{ matrix.os }} ${{ matrix.java }} (${{ matrix.distribution }}) compatibility check
2627
steps:
2728
- uses: actions/checkout@v3
2829
- name: Setup java
@@ -31,4 +32,38 @@ jobs:
3132
distribution: ${{ matrix.distribution }}
3233
java-version: ${{ matrix.java }}
3334
- name: Maven build
34-
run: mvn clean install -Pfull,coverage
35+
run: mvn clean install -P full,coverage
36+
check-alt:
37+
runs-on: ${{ matrix.os }}
38+
strategy:
39+
matrix:
40+
distribution: [ 'oracle', 'temurin' ]
41+
java: [ '17' ]
42+
os: [ 'ubuntu-latest' ]
43+
name: Java ${{ matrix.os }} ${{ matrix.java }} (${{ matrix.distribution }}) compatibility check
44+
steps:
45+
- uses: actions/checkout@v3
46+
- name: Setup java
47+
uses: actions/setup-java@v3
48+
with:
49+
distribution: ${{ matrix.distribution }}
50+
java-version: ${{ matrix.java }}
51+
- name: Maven build
52+
run: mvn clean install -P full,coverage
53+
check-ms:
54+
runs-on: ${{ matrix.os }}
55+
strategy:
56+
matrix:
57+
distribution: [ 'microsoft' ]
58+
java: [ '11', '17' ]
59+
os: [ 'windows-latest' ]
60+
name: Java ${{ matrix.os }} ${{ matrix.java }} (${{ matrix.distribution }}) compatibility check
61+
steps:
62+
- uses: actions/checkout@v3
63+
- name: Setup java
64+
uses: actions/setup-java@v3
65+
with:
66+
distribution: ${{ matrix.distribution }}
67+
java-version: ${{ matrix.java }}
68+
- name: Maven build
69+
run: mvn clean install -P full,coverage

0 commit comments

Comments
 (0)