2222 - name : Check event pull_request
2323 if : github.event_name == 'pull_request'
2424 run : ' echo pull_request: run workflow'
25- - uses : actions/checkout@v3
25+ - uses : actions/checkout@v4
2626 if : github.event_name == 'push'
27+ with :
28+ persist-credentials : false
2729 - name : Check event push
2830 id : findPr
2931 if : github.event_name == 'push'
@@ -46,10 +48,11 @@ jobs:
4648 - 16
4749 - 18
4850 - 20
49- - 21
5051 steps :
51- - uses : actions/checkout@v3
52- - uses : actions/setup-node@v3
52+ - uses : actions/checkout@v4
53+ with :
54+ persist-credentials : false
55+ - uses : actions/setup-node@v4
5356 with :
5457 node-version : ' ${{ matrix.node }}'
5558 - run : npm install --production
@@ -60,10 +63,12 @@ jobs:
6063 runs-on : ubuntu-latest
6164 needs : smoke
6265 steps :
63- - uses : actions/setup-node@v3
66+ - uses : actions/setup-node@v4
6467 with :
6568 node-version : lts/*
66- - uses : actions/checkout@v3
69+ - uses : actions/checkout@v4
70+ with :
71+ persist-credentials : false
6772 - name : ' Cache node_modules'
6873 uses : actions/cache@v3
6974 with :
@@ -90,17 +95,18 @@ jobs:
9095 - 16
9196 - 18
9297 - 20
93- - 21
9498 include :
9599 - os : ubuntu-latest
96100 node : 16
97101 env :
98102 COVERAGE : 1
99103 steps :
100- - uses : actions/setup-node@v3
104+ - uses : actions/setup-node@v4
101105 with :
102106 node-version : ' ${{ matrix.node }}'
103- - uses : actions/checkout@v3
107+ - uses : actions/checkout@v4
108+ with :
109+ persist-credentials : false
104110 - name : Get npm cache directory in Windows
105111 id : npm-cache
106112 if : ${{ matrix.os == 'windows-2019' }}
@@ -111,8 +117,6 @@ jobs:
111117 with :
112118 path : ${{ matrix.os == 'ubuntu-latest' && '~/.npm' || steps.npm-cache.outputs.dir }}
113119 key : " ${{ matrix.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}"
114- restore-keys : |
115- ${{ matrix.os }}-node-v${{ matrix.node }}-
116120 - name : Install Dependencies
117121 run : npm ci --ignore-scripts
118122 - name : Install Annotation Support
@@ -141,19 +145,19 @@ jobs:
141145 # Don't run forked 'pull_request' without saucelabs token
142146 if : github.event_name == 'push' || !github.event.pull_request.head.repo.fork
143147 steps :
144- - uses : actions/setup-node@v3
148+ - uses : actions/setup-node@v4
145149 with :
146150 node-version : lts/*
147- - uses : actions/checkout@v3
151+ - uses : actions/checkout@v4
152+ with :
153+ persist-credentials : false
148154 - name : ' Cache node_modules'
149155 uses : actions/cache@v3
150156 with :
151157 path : ' ~/.npm'
152158 # this key is different than above, since we are running scripts
153159 # (builds, postinstall lifecycle hooks, etc.)
154- key : " ubuntu-latest-node-full-v16-${{ hashFiles('**/package-lock.json') }}"
155- restore-keys : |
156- ubuntu-latest-node-full-v16-
160+ key : " ubuntu-latest-node-full-lts-${{ hashFiles('**/package-lock.json') }}"
157161 - name : Install Dependencies
158162 run : npm ci
159163 - name : Run Browser Tests
0 commit comments