Test Gradle composite cache action [do not merge] #48
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: Verify PR | |
| on: | |
| pull_request: | |
| types: | |
| - synchronize | |
| - opened | |
| jobs: | |
| verify-pr: | |
| # no secrets necessary | |
| permissions: | |
| contents: read | |
| runs-on: "ubuntu-24.04" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Java 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 25 | |
| distribution: temurin | |
| - name: Restore Gradle cache | |
| uses: entur/gradle-cache-action/restore@removeEnvOutput | |
| - name: Build with Gradle Wrapper | |
| run: ./gradlew build | |
| - name: Save Gradle cache | |
| if: always() # run even on failure so failed-build caches are stored | |
| uses: entur/gradle-cache-action/save@removeEnvOutput | |
| with: | |
| build-outcome: ${{ job.status }} |