Skip to content

Commit 3dfcc95

Browse files
authored
Use actions/upload-artifact and actions/download-artifact instead of cache (#314)
This replaces `actions/cache` with `actions/upload-artifact` and `actions/download-artifact`.
1 parent 01639af commit 3dfcc95

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ jobs:
2626
is-high-risk-environment: false
2727
- name: Build
2828
run: yarn build
29-
- name: Cache Snap build
30-
uses: actions/cache@v3
29+
- name: Upload Snap build artifact
30+
uses: actions/upload-artifact@v4
3131
with:
32+
name: snap-${{ runner.os }}-${{ github.sha }}
3233
path: ./packages/snap/dist
33-
key: snap-${{ runner.os }}-${{ github.sha }}
34+
retention-days: 1
3435
- name: Require clean working directory
3536
shell: bash
3637
run: |
@@ -70,11 +71,11 @@ jobs:
7071
uses: MetaMask/action-checkout-and-setup@v1
7172
with:
7273
is-high-risk-environment: false
73-
- name: Restore Snap build cache
74-
uses: actions/cache@v3
74+
- name: Download Snap build artifact
75+
uses: actions/download-artifact@v4
7576
with:
77+
name: snap-${{ runner.os }}-${{ github.sha }}
7678
path: ./packages/snap/dist
77-
key: snap-${{ runner.os }}-${{ github.sha }}
7879
- name: Run e2e tests
7980
run: yarn workspace snap run test
8081
- name: Require clean working directory

0 commit comments

Comments
 (0)