Skip to content

Commit c2cadcb

Browse files
committed
fix(ci): update actions/cache from v2 to v4
GitHub deprecated actions/cache v1/v2. Updated all 8 occurrences to v4. Ref: https://github.blog/changelog/2024-12-05-notice-of-upcoming- releases-and-breaking-changes-for-github-actions/
1 parent 9f23928 commit c2cadcb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
node-version: '16.x'
2121

2222
- name: Restore NPM cache
23-
uses: actions/cache@v2
23+
uses: actions/cache@v4
2424
id: cache
2525
with:
2626
path: ~/.npm
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Cache NPM
3636
if: steps.cache.outputs.cache-hit != 'true'
37-
uses: actions/cache@v2
37+
uses: actions/cache@v4
3838
with:
3939
path: ~/.npm
4040
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -55,7 +55,7 @@ jobs:
5555
node-version: '16.x'
5656

5757
- name: Restore NPM cache
58-
uses: actions/cache@v2
58+
uses: actions/cache@v4
5959
with:
6060
path: ~/.npm
6161
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -87,7 +87,7 @@ jobs:
8787
node-version: '16.x'
8888

8989
- name: Restore NPM cache
90-
uses: actions/cache@v2
90+
uses: actions/cache@v4
9191
with:
9292
path: ~/.npm
9393
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -117,7 +117,7 @@ jobs:
117117
node-version: '16.x'
118118

119119
- name: Restore NPM cache
120-
uses: actions/cache@v2
120+
uses: actions/cache@v4
121121
with:
122122
path: ~/.npm
123123
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -152,7 +152,7 @@ jobs:
152152
node-version: '16.x'
153153

154154
- name: Restore NPM cache
155-
uses: actions/cache@v2
155+
uses: actions/cache@v4
156156
with:
157157
path: ~/.npm
158158
key:
@@ -169,7 +169,7 @@ jobs:
169169

170170
- name: Restore cached Playwright dependencies
171171
id: cache-playwright
172-
uses: actions/cache@v2
172+
uses: actions/cache@v4
173173
with:
174174
path: ~/.cache/ms-playwright
175175
key:
@@ -184,7 +184,7 @@ jobs:
184184

185185
- name: Cache Playwright dependencies
186186
if: steps.cache-playwright.outputs.cache-hit != 'true'
187-
uses: actions/cache@v2
187+
uses: actions/cache@v4
188188
with:
189189
path: ~/.cache/ms-playwright
190190
key:

0 commit comments

Comments
 (0)