build: add caching for Gradle in workflow configuration
All checks were successful
Quality Check / Tests (pull_request) Successful in 4m41s
Quality Check / Checkstyle Main (pull_request) Successful in 4m51s

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

@ -12,6 +12,19 @@ jobs:
steps:
- name: "Checkout"
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
$HOME/.m2/repository
~/.m2/repository
./.gradle
./app/build
./build
./release
key: gradle-${{ runner.os }}
restore-keys: |
gradle-${{ runner.os }}
gradle-
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: "Check"
@ -26,6 +39,19 @@ jobs:
steps:
- name: "Checkout"
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
$HOME/.m2/repository
~/.m2/repository
./.gradle
./app/build
./build
./release
key: gradle-${{ runner.os }}
restore-keys: |
gradle-${{ runner.os }}
gradle-
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: "Check"