Bump the dependencies group with 3 updates #1455
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow builds and tests PRs for AHC. | |
| # Docs: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
| name: Build PR | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| inputs: | |
| name: | |
| description: 'Github Actions' | |
| required: true | |
| default: 'Github Actions' | |
| jobs: | |
| compile-and-check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| # The last entry wins the default JAVA_HOME, so the baseline check runs on JDK 11. | |
| - uses: actions/setup-java@v6.0.1 | |
| with: | |
| distribution: 'corretto' | |
| java-version: | | |
| 21 | |
| 11 | |
| cache-jdk: true | |
| - uses: ./.github/actions/setup-maven | |
| with: | |
| cache-read-only: ${{ github.event_name == 'pull_request' }} | |
| - name: Compile and API compatibility check | |
| run: ./mvnw -B -ntp clean verify -DskipTests -Dgpg.skip=true | |
| - name: Static analysis on JDK 21 | |
| env: | |
| JAVA_HOME: ${{ env.JAVA_HOME_21_X64 }} | |
| run: ./mvnw -B -ntp clean verify -DskipTests -Dgpg.skip=true | |
| test: | |
| needs: compile-and-check | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| jdk: [11, 17, 21, 25] | |
| include: | |
| - jdk: 11 | |
| distribution: corretto | |
| - jdk: 17 | |
| distribution: corretto | |
| - jdk: 21 | |
| distribution: corretto | |
| - jdk: 25 | |
| distribution: corretto | |
| runs-on: ${{ matrix.os }} | |
| # A test job takes under 10 minutes. Nothing retries a hung test any more, so bound it here. | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-java@v6.0.1 | |
| with: | |
| distribution: ${{ matrix.distribution }} | |
| java-version: ${{ matrix.jdk }} | |
| cache-jdk: true | |
| - uses: ./.github/actions/setup-maven | |
| with: | |
| cache-read-only: ${{ github.event_name == 'pull_request' }} | |
| - name: Run Tests (Linux) | |
| if: runner.os == 'Linux' | |
| run: ./mvnw -B -ntp clean test -Ddocker.tests=true | |
| - name: Run Tests (macOS) | |
| if: runner.os == 'macOS' | |
| run: ./mvnw -B -ntp clean test -Dno.docker.tests=true | |
| - name: Run Tests (Windows) | |
| if: runner.os == 'Windows' | |
| run: ./mvnw.cmd -B -ntp clean test "-Dno.docker.tests=true" |