Skip to content

Commit

Permalink
ci: cache improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
gilles-gosuin committed Dec 6, 2024
1 parent 6ca4b97 commit 46e4256
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
branches:
- beta
- main
env:
FIREBASE_TOOLS_VERSION: 13.28.0
jobs:
release:
name: Release
Expand Down Expand Up @@ -37,27 +39,26 @@ jobs:
workload_identity_provider: projects/${{ vars.GOOGLE_PROJECT_NUMBER }}/locations/global/workloadIdentityPools/github-actions-workflows/providers/github-actions

- name: Set up Firebase CLI
run: npm install -g firebase-tools@13.27.0
run: npm install -g firebase-tools@${FIREBASE_TOOLS_VERSION}

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 22
cache: gradle
distribution: temurin
java-version: 22

- name: Cache SonarCloud packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
path: ~/.sonar/cache

- name: Cache Gradle packages
- name: Cache Firebase emulators
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
key: firebase-tools-${{ env.FIREBASE_TOOLS_VERSION }}
path: ~/.cache/firebase/emulators

- name: Test
run: make app/test
Expand Down

0 comments on commit 46e4256

Please sign in to comment.