9
9
matrix :
10
10
cache : [maven]
11
11
distribution : [temurin]
12
- java : [11, 17, 21, 22, 23-ea, 24-ea]
12
+ java : [17, 21, 22, 23-ea, 24-ea]
13
13
os : [ubuntu-latest, macos-latest, windows-latest]
14
14
fail-fast : false
15
15
max-parallel : 4
@@ -31,26 +31,17 @@ jobs:
31
31
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
32
32
restore-keys : |
33
33
${{ runner.os }}-m2
34
- - name : Set argLine command line option
35
- if : ${{ matrix.java == '11' }}
36
- run : echo 'ARG_LINE=-D"argLine=--illegal-access=permit"' >> $GITHUB_ENV
37
- - name : Run all tests
38
- if : ${{ matrix.os == 'ubuntu-latest' && matrix.java == '11' }}
39
- run : echo 'ARG_LINE=-D"excludedGroups="' >> $GITHUB_ENV
40
34
- name : Skip tests that require illegal reflective access
41
- if : ${{ matrix.os == 'ubuntu-latest' && matrix.java != '11' }}
35
+ if : ${{ matrix.os == 'ubuntu-latest' }}
42
36
run : echo 'ARG_LINE=-D"excludedGroups=RequireIllegalAccess"' >> $GITHUB_ENV
43
37
- name : Skip tests that require illegal reflective access
44
- if : ${{ matrix.os != 'ubuntu-latest' && matrix.java != '11' }}
38
+ if : ${{ matrix.os != 'ubuntu-latest' }}
45
39
run : echo 'ARG_LINE=-D"excludedGroups=TestcontainersTests,RequireIllegalAccess"' >> $GITHUB_ENV
46
40
- name : Active Profiles
47
41
run : ./mvnw help:active-profiles
48
42
- name : Test with Maven
49
43
if : ${{ matrix.os != 'windows-latest' }}
50
44
run : ./mvnw test -B -V --no-transfer-progress -D"license.skip=true" -D"jacoco.skip=true" $ARG_LINE
51
45
- name : Test with Maven
52
- if : ${{ matrix.os == 'windows-latest' && matrix.java == '11' }}
53
- run : ./mvnw test -B -V --no-transfer-progress -D"license.skip=true" -D"jacoco.skip=true" -D"argLine=--illegal-access=permit"
54
- - name : Test with Maven
55
- if : ${{ matrix.os == 'windows-latest' && matrix.java != '11' }}
46
+ if : ${{ matrix.os == 'windows-latest' }}
56
47
run : ./mvnw test -B -V --no-transfer-progress -D"license.skip=true" -D"jacoco.skip=true" -D"excludedGroups=TestcontainersTests,RequireIllegalAccess"
0 commit comments