Skip to content

Commit 84b2f84

Browse files
authored
chore(ci): upgrade GH actions to latest versions (#4899)
1 parent 023f548 commit 84b2f84

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/workflows/browser-test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
runs-on: ubuntu-latest
1313
if: contains(github.event.pull_request.labels.*.name, 'run-browser-test')
1414
steps:
15-
- uses: actions/setup-node@v2
15+
- uses: actions/setup-node@v3
1616
with:
1717
node-version: 16
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919
with:
2020
ref: ${{ github.event.pull_request.head.sha }}
2121
- name: 'Cache node_modules'
22-
uses: actions/cache@v2
22+
uses: actions/cache@v3
2323
with:
2424
path: '~/.npm'
2525
key: "ubuntu-latest-node-full-v16-${{ hashFiles('**/package-lock.json') }}"

.github/workflows/mocha.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Check event pull_request
2323
if: github.event_name == 'pull_request'
2424
run: 'echo pull_request: run workflow'
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2626
if: github.event_name == 'push'
2727
- name: Check event push
2828
id: findPr
@@ -46,8 +46,8 @@ jobs:
4646
- 16
4747
- 18
4848
steps:
49-
- uses: actions/checkout@v2
50-
- uses: actions/setup-node@v2
49+
- uses: actions/checkout@v3
50+
- uses: actions/setup-node@v3
5151
with:
5252
node-version: '${{ matrix.node }}'
5353
- run: npm install --production
@@ -58,12 +58,12 @@ jobs:
5858
runs-on: ubuntu-latest
5959
needs: smoke
6060
steps:
61-
- uses: actions/setup-node@v2
61+
- uses: actions/setup-node@v3
6262
with:
6363
node-version: 16
64-
- uses: actions/checkout@v2
64+
- uses: actions/checkout@v3
6565
- name: 'Cache node_modules'
66-
uses: actions/cache@v2
66+
uses: actions/cache@v3
6767
with:
6868
path: '~/.npm'
6969
key: "ubuntu-latest-node-v16-${{ hashFiles('**/package-lock.json') }}"
@@ -95,17 +95,17 @@ jobs:
9595
env:
9696
COVERAGE: 1
9797
steps:
98-
- uses: actions/setup-node@v2
98+
- uses: actions/setup-node@v3
9999
with:
100100
node-version: '${{ matrix.node }}'
101-
- uses: actions/checkout@v2
101+
- uses: actions/checkout@v3
102102
- name: Get npm cache directory in Windows
103103
id: npm-cache
104104
if: ${{ matrix.os == 'windows-2019' }}
105105
run: |
106106
echo "::set-output name=dir::$(npm config get cache)"
107107
- name: 'Cache node_modules'
108-
uses: actions/cache@v2
108+
uses: actions/cache@v3
109109
with:
110110
path: ${{ matrix.os == 'ubuntu-latest' && '~/.npm' || steps.npm-cache.outputs.dir }}
111111
key: "${{ matrix.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}"
@@ -139,12 +139,12 @@ jobs:
139139
# Don't run forked 'pull_request' without saucelabs token
140140
if: github.event_name == 'push' || !github.event.pull_request.head.repo.fork
141141
steps:
142-
- uses: actions/setup-node@v2
142+
- uses: actions/setup-node@v3
143143
with:
144144
node-version: 16
145-
- uses: actions/checkout@v2
145+
- uses: actions/checkout@v3
146146
- name: 'Cache node_modules'
147-
uses: actions/cache@v2
147+
uses: actions/cache@v3
148148
with:
149149
path: '~/.npm'
150150
# this key is different than above, since we are running scripts

0 commit comments

Comments
 (0)