Skip to content

Commit 026ce53

Browse files
committed
test(e2e): name the caching steps and try restore keys
even if we don't have a full cache match, a fallback should be okay in some cases
1 parent 573e05e commit 026ce53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/tests_e2e_ios.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,19 @@ jobs:
7575
with:
7676
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
7777
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}-v1
78+
restore-keys: ${{ runner.os }}-yarn-
7879

7980
- uses: actions/cache@v2
8081
name: Cache Pods
82+
id: pods-cache
8183
with:
8284
path: tests/ios/Pods
8385
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}-v1
86+
restore-keys: ${{ runner.os }}-pods-
8487

8588
- uses: actions/cache@v2
8689
name: Detox Framework Cache
90+
id: detox-cache
8791
with:
8892
path: ~/Library/Detox/ios
8993
key: ${{ runner.os }}-detox-framework-cache-${{ steps.xcode-version.outputs.xcode-version }}

0 commit comments

Comments
 (0)