ci: update Gradle caching in workflow configuration
All checks were successful
Quality Check / Tests (pull_request) Successful in 34s
Quality Check / Checkstyle Main (pull_request) Successful in 44s

This commit is contained in:
Jan Gleytenhoover 2024-09-25 10:52:46 +02:00
parent 13bb137de7
commit 0f85e24fdf
Signed by: jank
GPG Key ID: B267751B8AE29EFE

@ -15,18 +15,13 @@ jobs:
- uses: actions/cache@v3 - uses: actions/cache@v3
with: with:
path: | path: |
$HOME/.m2/repository ~/.gradle/caches
~/.m2/repository ~/.gradle/wrapper
./.gradle key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
./app/build
./build
./release
key: gradle-${{ runner.os }}
restore-keys: | restore-keys: |
gradle-${{ runner.os }} ${{ runner.os }}-gradle-
gradle- - name: "Prepare Gradle"
- name: Setup Gradle run: gradle clean
uses: gradle/gradle-build-action@v2
- name: "Check" - name: "Check"
run: gradle testClasses run: gradle testClasses
- name: "Stop Gradle" - name: "Stop Gradle"
@ -42,18 +37,13 @@ jobs:
- uses: actions/cache@v3 - uses: actions/cache@v3
with: with:
path: | path: |
$HOME/.m2/repository ~/.gradle/caches
~/.m2/repository ~/.gradle/wrapper
./.gradle key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
./app/build
./build
./release
key: gradle-${{ runner.os }}
restore-keys: | restore-keys: |
gradle-${{ runner.os }} ${{ runner.os }}-gradle-
gradle- - name: "Prepare Gradle"
- name: Setup Gradle run: gradle clean
uses: gradle/gradle-build-action@v2
- name: "Check" - name: "Check"
run: gradle check run: gradle check
- name: "Stop Gradle" - name: "Stop Gradle"