Add pluggable DnsNameResolver #851
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 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'corretto' | |
| java-version: '11' | |
| - name: Grant Permission | |
| run: chmod +x ./mvnw | |
| - name: Compile and API compatibility check | |
| 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 }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: ${{ matrix.distribution }} | |
| java-version: ${{ matrix.jdk }} | |
| - name: Grant Permission | |
| if: runner.os != 'Windows' | |
| run: chmod +x ./mvnw | |
| - 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" |