Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update actions/cache action to v4 #7182

Merged
merged 1 commit into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
ruby-version: '3.0'
bundler-cache: true
- name: Restore Gradle cache
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: |
~/.gradle/caches
Expand Down
54 changes: 27 additions & 27 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Extract job definition
run: yq '.jobs.${{ github.job }}' .github/workflows/check.yml > .github/job.yml

- uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: node-cache
with:
path: node_modules/
Expand All @@ -43,7 +43,7 @@ jobs:
- if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci

- uses: actions/cache/save@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
if: steps.node-cache.outputs.cache-hit != 'true'
with:
path: node_modules/
Expand All @@ -60,7 +60,7 @@ jobs:
- name: Extract job definition
run: yq '.jobs.${{ github.job }}' .github/workflows/check.yml > .github/job.yml

- uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: node-cache
with:
path: node_modules/
Expand All @@ -75,7 +75,7 @@ jobs:
- if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci

- uses: actions/cache/save@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
if: steps.node-cache.outputs.cache-hit != 'true'
with:
path: node_modules/
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
run: yq '.jobs.${{ github.job }}' .github/workflows/check.yml > .github/job.yml

- name: Restore Cocoapods cache
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: cocoapods-cache
with:
path: ios/Pods
Expand All @@ -128,7 +128,7 @@ jobs:

- name: Restore node_modules cache
if: steps.cocoapods-cache.outputs.cache-hit != 'true'
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: node-cache
with:
path: node_modules/
Expand All @@ -142,7 +142,7 @@ jobs:
working-directory: ./ios

- name: Save Cocoapods cache
uses: actions/cache/save@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
if: steps.cocoapods-cache.outputs.cache-hit != 'true'
with:
path: ios/Pods
Expand All @@ -160,7 +160,7 @@ jobs:
node-version-file: '.node-version'

- name: Restore node_modules cache
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: node-cache
with:
path: node_modules/
Expand All @@ -183,7 +183,7 @@ jobs:
node-version-file: '.node-version'

- name: Restore node_modules cache
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: node-cache
with:
path: node_modules/
Expand All @@ -206,7 +206,7 @@ jobs:
node-version-file: '.node-version'

- name: Restore node_modules cache
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: node-cache
with:
path: node_modules/
Expand All @@ -233,7 +233,7 @@ jobs:
node-version-file: '.node-version'

- name: Restore node_modules cache
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: node-cache
with:
path: node_modules/
Expand All @@ -256,7 +256,7 @@ jobs:
node-version-file: '.node-version'

- name: Restore node_modules cache
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: node-cache
with:
path: node_modules/
Expand Down Expand Up @@ -286,7 +286,7 @@ jobs:
node-version-file: '.node-version'

- name: Restore node_modules cache
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: node-cache
with:
path: node_modules/
Expand All @@ -296,7 +296,7 @@ jobs:
run: exit 1

- name: Load the cached jsbundle
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: jsbundle-cache
with:
path: |
Expand All @@ -312,7 +312,7 @@ jobs:
APP_MODE: mocked

- name: Cache the jsbundle
uses: actions/cache/save@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
if: steps.jsbundle-cache.outputs.cache-hit != 'true'
with:
path: |
Expand All @@ -338,7 +338,7 @@ jobs:
node-version-file: '.node-version'

- name: Restore node_modules cache
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: node-cache
with:
path: node_modules/
Expand All @@ -348,7 +348,7 @@ jobs:
run: exit 1

- name: Load the cached jsbundle
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: jsbundle-cache
with:
path: ./android/generated/
Expand All @@ -362,7 +362,7 @@ jobs:

- name: Cache the jsbundle
if: steps.jsbundle-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: ./android/generated/
key: ${{ steps.jsbundle-cache.outputs.cache-primary-key }}
Expand All @@ -379,7 +379,7 @@ jobs:
node-version-file: '.node-version'

- name: Restore node_modules cache
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: node-cache
with:
path: node_modules/
Expand Down Expand Up @@ -418,7 +418,7 @@ jobs:
path: build/reports/

- name: Cache the Android app
uses: actions/cache/save@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: android/app/build/outputs/apk/
key: ${{ steps.app-cache.outputs.cache-primary-key }}
Expand All @@ -444,7 +444,7 @@ jobs:

- name: Check for cached iOS app
id: app-cache
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: ios/build/Build/Products/
key: ${{ runner.os }}-ios-xcode@${{ env.xcode_version }}-${{ hashFiles('**/project.pbxproj', '**/Podfile', '**/Podfile.lock', 'package-lock.json', '.github/job.yml') }}
Expand All @@ -456,7 +456,7 @@ jobs:

- name: Restore node_modules cache
if: steps.app-cache.outputs.cache-hit != 'true'
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: node-cache
with:
path: node_modules/
Expand All @@ -476,7 +476,7 @@ jobs:

- name: Restore Cocoapods cache
if: steps.app-cache.outputs.cache-hit != 'true'
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: pods-cache
with:
path: ios/Pods
Expand All @@ -501,7 +501,7 @@ jobs:
run: npx detox build e2e --configuration ios.sim.release

- name: Cache the iOS app
uses: actions/cache/save@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: ios/build/Build/Products/
key: ${{ steps.app-cache.outputs.cache-primary-key }}
Expand All @@ -523,7 +523,7 @@ jobs:

- # load the app before reinstalling detox, so that the package-lock cannot change
name: Load the cached iOS app
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: app-cache
with:
path: ios/build/Build/Products/
Expand All @@ -534,7 +534,7 @@ jobs:

- # load the jsbundle before reinstalling detox, so that the package-lock cannot change
name: Load the cached iOS jsbundle
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: jsbundle-cache
with:
path: |
Expand All @@ -558,7 +558,7 @@ jobs:
node-version-file: '.node-version'

- name: Restore node_modules cache
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: node-cache
with:
path: node_modules/
Expand Down
Loading