Skip to content

Commit

Permalink
JDK 8 is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
pnatashap authored Oct 4, 2023
1 parent 559399e commit be4e2ce
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Run tests
env:
ALLURE_VERSION: "2.10.0"
SUREFIRE_ARGS: "--add-opens java.base/java.lang=ALL-UNNAMED"

on:
push:
Expand All @@ -26,7 +25,7 @@ jobs:
max-parallel: 1
fail-fast: false
matrix:
java: [ 8, 11, 13, 14, 15, 17, 18 ]
java: [ 11, 13, 14, 15, 17, 18 ]

steps:
- uses: actions/checkout@v3
Expand All @@ -38,18 +37,6 @@ jobs:
java-package: jdk
cache: 'maven'

- name: Set parameters for AspectJ
id: aspect_j_params
if: ${{ matrix.java > 15 }}
run: |
echo "ASPECT_ARGS=-Daspectj.args="\"$SUREFIRE_ARGS\" >> $GITHUB_ENV
- name: Set parameters for AspectJ
id: aspect_j_params_empty
if: ${{ matrix.java < 16 }}
run: |
echo "ASPECT_ARGS=-Daspectj.args=''" >> $GITHUB_ENV
- name: Build with Maven
id: build
run: mvn clean install -DskipTests -ntp
Expand All @@ -58,7 +45,7 @@ jobs:
id: functests
timeout-minutes: 15
continue-on-error: true
run: mvn test -ntp ${{ env.ASPECT_ARGS }} --fail-at-end
run: mvn test -ntp --fail-at-end

- name: Generate Allure report
uses: simple-elf/allure-report-action@master
Expand All @@ -71,4 +58,4 @@ jobs:
if: ${{ steps.functests.outcome != 'success' }}
run: |
echo Tests result: ${{ steps.functests.outcome }}
exit 1
exit 1

0 comments on commit be4e2ce

Please sign in to comment.