File tree 1 file changed +19
-3
lines changed 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,14 @@ jobs:
174
174
steps :
175
175
- uses : actions/checkout@v2
176
176
177
+ - name : Install node.js v12
178
+ uses : actions/setup-node@v2
179
+ with :
180
+ node-version : " 12"
181
+
182
+ - name : Install playwright
183
+ uses : microsoft/playwright-github-action@v1
184
+
177
185
- name : Download release packages
178
186
uses : actions/download-artifact@v2
179
187
with :
@@ -184,12 +192,20 @@ jobs:
184
192
run : |
185
193
cd release-packages && tar -xzf code-server*-linux-amd64.tar.gz
186
194
187
- - uses : microsoft/playwright-github-action@v1
195
+ - name : Fetch dependencies from cache
196
+ id : cache-yarn
197
+ uses : actions/cache@v2
198
+ with :
199
+ path : " **/node_modules"
200
+ key : yarn-build-${{ hashFiles('**/yarn.lock') }}
201
+
202
+ - name : Install dependencies
203
+ if : steps.cache-yarn.outputs.cache-hit != 'true'
204
+ run : yarn --frozen-lockfile
188
205
189
- - name : Install dependencies and run end-to-end tests
206
+ - name : Run end-to-end tests
190
207
run : |
191
208
./release-packages/code-server*-linux-amd64/bin/code-server &
192
- yarn --frozen-lockfile
193
209
yarn test:e2e
194
210
195
211
- name : Upload test artifacts
You can’t perform that action at this time.
0 commit comments