22
22
- name : Check event pull_request
23
23
if : github.event_name == 'pull_request'
24
24
run : ' echo pull_request: run workflow'
25
- - uses : actions/checkout@v2
25
+ - uses : actions/checkout@v3
26
26
if : github.event_name == 'push'
27
27
- name : Check event push
28
28
id : findPr
46
46
- 16
47
47
- 18
48
48
steps :
49
- - uses : actions/checkout@v2
50
- - uses : actions/setup-node@v2
49
+ - uses : actions/checkout@v3
50
+ - uses : actions/setup-node@v3
51
51
with :
52
52
node-version : ' ${{ matrix.node }}'
53
53
- run : npm install --production
@@ -58,12 +58,12 @@ jobs:
58
58
runs-on : ubuntu-latest
59
59
needs : smoke
60
60
steps :
61
- - uses : actions/setup-node@v2
61
+ - uses : actions/setup-node@v3
62
62
with :
63
63
node-version : 16
64
- - uses : actions/checkout@v2
64
+ - uses : actions/checkout@v3
65
65
- name : ' Cache node_modules'
66
- uses : actions/cache@v2
66
+ uses : actions/cache@v3
67
67
with :
68
68
path : ' ~/.npm'
69
69
key : " ubuntu-latest-node-v16-${{ hashFiles('**/package-lock.json') }}"
@@ -95,17 +95,17 @@ jobs:
95
95
env :
96
96
COVERAGE : 1
97
97
steps :
98
- - uses : actions/setup-node@v2
98
+ - uses : actions/setup-node@v3
99
99
with :
100
100
node-version : ' ${{ matrix.node }}'
101
- - uses : actions/checkout@v2
101
+ - uses : actions/checkout@v3
102
102
- name : Get npm cache directory in Windows
103
103
id : npm-cache
104
104
if : ${{ matrix.os == 'windows-2019' }}
105
105
run : |
106
106
echo "::set-output name=dir::$(npm config get cache)"
107
107
- name : ' Cache node_modules'
108
- uses : actions/cache@v2
108
+ uses : actions/cache@v3
109
109
with :
110
110
path : ${{ matrix.os == 'ubuntu-latest' && '~/.npm' || steps.npm-cache.outputs.dir }}
111
111
key : " ${{ matrix.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}"
@@ -139,12 +139,12 @@ jobs:
139
139
# Don't run forked 'pull_request' without saucelabs token
140
140
if : github.event_name == 'push' || !github.event.pull_request.head.repo.fork
141
141
steps :
142
- - uses : actions/setup-node@v2
142
+ - uses : actions/setup-node@v3
143
143
with :
144
144
node-version : 16
145
- - uses : actions/checkout@v2
145
+ - uses : actions/checkout@v3
146
146
- name : ' Cache node_modules'
147
- uses : actions/cache@v2
147
+ uses : actions/cache@v3
148
148
with :
149
149
path : ' ~/.npm'
150
150
# this key is different than above, since we are running scripts
0 commit comments