Skip to content

Commit 89a542d

Browse files
committed
wip: add e2e tests
1 parent ff7839f commit 89a542d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,36 @@ jobs:
2929
uses: ./ci/images/debian10
3030
with:
3131
args: ./ci/steps/test-unit.sh
32+
test-e2e:
33+
needs: linux-amd64
34+
runs-on: ubuntu-latest
35+
env:
36+
PASSWORD: e45432jklfdsab
37+
CODE_SERVER_ADDRESS: http://localhost:8080
38+
steps:
39+
- uses: actions/checkout@v1
40+
- name: Download release packages
41+
uses: actions/download-artifact@v2
42+
with:
43+
name: release-packages
44+
path: ./release-packages
45+
- name: Untar code-server file
46+
run: |
47+
cd release-packages && tar -xzf code-server*-linux-amd64.tar.gz
48+
- uses: microsoft/playwright-github-action@v1
49+
- name: Install dependencies and run end-to-end tests
50+
run: |
51+
./release-packages/code-server*-linux-amd64/bin/code-server --home $CODE_SERVER_ADDRESS/healthz &
52+
yarn --frozen-lockfile
53+
yarn test:e2e
54+
- name: Upload test artifacts
55+
if: always()
56+
uses: actions/upload-artifact@v2
57+
with:
58+
name: test-videos
59+
path: ./test/e2e/videos
60+
- name: Remove release packages and test artifacts
61+
run: rm -rf ./release-packages ./test/e2e/videos
3262

3363
release:
3464
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)