diff --git a/.github/workflows/test-jdk-8.yml b/.github/workflows/test-jdk-8.yml index 09046f05..d27ca773 100644 --- a/.github/workflows/test-jdk-8.yml +++ b/.github/workflows/test-jdk-8.yml @@ -5,37 +5,28 @@ on: pull_request: workflow_dispatch: -# Cancel existing executions when new commits are pushed onto the branch -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - jobs: - build: - runs-on: ${{ matrix.os }}-latest - strategy: - fail-fast: false - matrix: - java: ['21'] - os: [ ubuntu ] + build-21-run-8: + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/cache@v4.0.2 with: path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + key: ubuntu-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | - ${{ runner.os }}-maven- - - name: Set up JDK${{ matrix.java }} + ubuntu-maven- + - name: Set up JDK21 uses: actions/setup-java@v4 with: distribution: 'zulu' - java-version: ${{ matrix.java }} + java-version: 21 + - name: Turn off formatting + run: | + ./set_formatting_off.sh - name: Build with Maven run: | - sed -i 's/// formatter_plugin_end -->/g' pom.xml mvn -B install --file pom.xml - name: Set up JDK8 uses: actions/setup-java@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2e87b3a..aff8927b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - java: ['16', '17', '18', '19', '20', '21'] + java: ['16', '17', '18', '19', '20', '21', '23'] os: [ ubuntu, windows ] steps: @@ -36,9 +36,9 @@ jobs: java-version: ${{ matrix.java }} - name: Build with Maven run: | - sed -i 's/// formatter_plugin_end -->/g' pom.xml + ./set_formatting_off.sh mvn -B verify --file pom.xml + shell: bash auto-merge: needs: build runs-on: ubuntu-latest