Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 47f62ba

Browse files
author
Akash Satheesan
committedMar 26, 2021
chore(ci): refactor end-to-end test job
1 parent e6e080c commit 47f62ba

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed
 

‎.github/workflows/ci.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,14 @@ jobs:
174174
steps:
175175
- uses: actions/checkout@v2
176176

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+
177185
- name: Download release packages
178186
uses: actions/download-artifact@v2
179187
with:
@@ -184,12 +192,20 @@ jobs:
184192
run: |
185193
cd release-packages && tar -xzf code-server*-linux-amd64.tar.gz
186194
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
188205

189-
- name: Install dependencies and run end-to-end tests
206+
- name: Run end-to-end tests
190207
run: |
191208
./release-packages/code-server*-linux-amd64/bin/code-server &
192-
yarn --frozen-lockfile
193209
yarn test:e2e
194210
195211
- name: Upload test artifacts

0 commit comments

Comments
 (0)
Please sign in to comment.