Guide for Oracle-backed Micronaut Cache #4309
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
| name: Test Guides | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| test_matrix: | |
| name: Generate Guide Test Matrix | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.test_matrix_step.outputs.matrix }} | |
| has_tasks: ${{ steps.test_matrix_step.outputs.has_tasks }} | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Generate Guide Test Matrix | |
| id: test_matrix_step | |
| env: | |
| BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }} | |
| HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }} | |
| DIFF_MODE: ${{ github.event_name == 'pull_request' && 'merge-base' || 'range' }} | |
| run: | | |
| python3 .github/scripts/guide_ci_tasks.py \ | |
| --repo "$GITHUB_WORKSPACE" \ | |
| --base "$BASE_SHA" \ | |
| --head "$HEAD_SHA" \ | |
| --diff-mode "$DIFF_MODE" \ | |
| --github-output "$GITHUB_OUTPUT" | |
| alltests: | |
| name: Running ${{ matrix.group }} with Java ${{ matrix.java }} | |
| needs: test_matrix | |
| if: needs.test_matrix.outputs.has_tasks == 'true' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java: ["25"] | |
| group: ${{ fromJson(needs.test_matrix.outputs.matrix).group_test_tasks }} | |
| env: | |
| JDK_VERSION: ${{ matrix.java }} | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/cache@v5.0.5 | |
| with: | |
| path: ~/.gradle/caches | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5.2.0 | |
| with: | |
| distribution: 'adopt' | |
| java-version: ${{ matrix.java }} | |
| - name: Run Selected Guide Test | |
| run: './gradlew ${{ matrix.group }}' | |
| env: | |
| GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | |
| GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }} | |
| GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} |