Skip to content

Commit

Permalink
refs #110: set gradle cache for ci-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciogeneroso committed Jun 30, 2024
1 parent 52587ec commit af5752c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ jobs:
java-version: '21'
distribution: 'temurin'

- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-
- name: Build + unit tests
run: ./gradlew :app:build

Expand Down Expand Up @@ -74,6 +84,16 @@ jobs:
java-version: '21'
distribution: 'temurin'

- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-
- name: Download JAR
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit af5752c

Please sign in to comment.