Skip to content

Commit fc51a30

Browse files
committed
[actions] --illegal-access is not recognizable in Java 8
1 parent ac35f94 commit fc51a30

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,9 @@ jobs:
4242
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
4343
restore-keys: |
4444
${{ runner.os }}-maven-
45+
- name: Set argLine command line option
46+
shell: bash
47+
if: ${{ matrix.java != '8' }}
48+
run: echo 'ARG_LINE="-DargLine=--illegal-access=permit"' >> $GITHUB_ENV
4549
- name: Test with Maven
46-
run: ./mvnw test -B -D"env.TRAVIS" -D"license.skip=true" -D"jacoco.skip=true" -DargLine="--illegal-access=permit"
50+
run: ./mvnw test -B -D"env.TRAVIS" -D"license.skip=true" -D"jacoco.skip=true" $ARG_LINE

0 commit comments

Comments
 (0)