chore(deps): update grafana/shared-workflows/ action to #572
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.agent }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| agent: [ubuntu-x64-small, macos-latest] | |
| java: ['11', '17', '21', '25'] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Set up JDK 21 for Gradle upgrade | |
| if: ${{ !contains(fromJSON('["11", "17", "21"]'), matrix.java) }} | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'zulu' | |
| - name: Upgrade Gradle wrapper for newer Java versions | |
| if: ${{ !contains(fromJSON('["11", "17", "21"]'), matrix.java) }} | |
| run: ./gradlew wrapper --gradle-version=9.0 | |
| - name: Set up JDK | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'zulu' | |
| - run: ./gradlew test --stacktrace | |
| javadoc: | |
| runs-on: ubuntu-x64 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 | |
| with: | |
| java-version: 11 | |
| distribution: 'temurin' | |
| - run: ./gradlew javaDoc --info |