Repository navigation
chore(deps): update dependency java-jdk to v21 #355
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 | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| defaults: | |
| run: | |
| shell: bash | |
| permissions: {} | |
| jobs: | |
| testMatrix: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| strategy: | |
| max-parallel: 1 | |
| matrix: | |
| java: ["17", "21"] | |
| name: "Java ${{ matrix.java }}" | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 | |
| with: | |
| java-version: "${{ matrix.java }}" | |
| distribution: "temurin" | |
| cache: "gradle" | |
| - name: Validate Gradle wrapper | |
| uses: gradle/actions/wrapper-validation@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0 | |
| - name: Run tests | |
| run: ./gradlew test | |
| env: | |
| CERBOS_HUB_API_ENDPOINT: "${{ secrets.CERBOS_HUB_API_ENDPOINT }}" | |
| CERBOS_HUB_CLIENT_ID: "${{ secrets.CERBOS_HUB_CLIENT_ID }}" | |
| CERBOS_HUB_CLIENT_SECRET: "${{ secrets.CERBOS_HUB_CLIENT_SECRET }}" | |
| CERBOS_HUB_STORE_ID: "${{ secrets.CERBOS_HUB_STORE_ID }}" | |
| - name: Store reports | |
| if: failure() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: "Reports for Java ${{ matrix.java }}" | |
| path: |- | |
| **/build/reports/ | |
| **/build/test-results/ | |
| testSuccess: | |
| runs-on: ubuntu-latest | |
| needs: testMatrix | |
| if: always() | |
| steps: | |
| - name: Check test results | |
| run: test "${{ needs.testMatrix.result }}" = "success" |