Debug flaky tests #10
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
| name: Debug flaky tests | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - windows-latest | |
| test-java-version: | |
| - 8 | |
| - 11 | |
| - 17 | |
| - 21 | |
| - 23 | |
| run_id: [1, 2] | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - id: setup-java-test | |
| name: Set up Java ${{ matrix.test-java-version }} for tests | |
| uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 | |
| with: | |
| distribution: temurin | |
| java-version: ${{ matrix.test-java-version }} | |
| - id: setup-java | |
| name: Set up Java for build | |
| uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - name: Set up gradle | |
| uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1 | |
| with: | |
| cache-read-only: ${{ github.event_name == 'pull_request' }} | |
| - name: Gradle test | |
| run: > | |
| ./gradlew test --no-build-cache | |
| "-PtestJavaVersion=${{ matrix.test-java-version }}" | |
| "-Porg.gradle.java.installations.paths=${{ steps.setup-java-test.outputs.path }}" | |
| "-Porg.gradle.java.installations.auto-download=false" |