Skip to content

Commit

Permalink
Cache Gradle package and bump GH Gradle action
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Mar 26, 2024
1 parent c1b9beb commit a6eaab7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ jobs:
java-version: 8

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v3
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}


- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle

- name: Execute Gradle build
run: ./gradlew clean check integrationTest --scan --stacktrace

Expand Down

0 comments on commit a6eaab7

Please sign in to comment.