Skip to content

Commit aeaf11c

Browse files
committed
refactor: update ci.yaml, test:unit and test:e2e
1 parent 6fd30d9 commit aeaf11c

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/ci.yaml

+14-7
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,16 @@ jobs:
2727
with:
2828
args: ./ci/steps/lint.sh
2929

30-
test:
30+
test-unit:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v1
34+
- name: Run unit tests
35+
uses: ./ci/images/debian10
36+
with:
37+
args: ./ci/steps/test-unit.sh
38+
39+
test-e2e:
3140
needs: linux-amd64
3241
runs-on: ubuntu-latest
3342
env:
@@ -45,18 +54,16 @@ jobs:
4554
cd release-packages && tar -xzf code-server*-linux-amd64.tar.gz
4655
- uses: microsoft/playwright-github-action@v1
4756
- name: Install dependencies and run tests
48-
run: |
49-
./release-packages/code-server*-linux-amd64/bin/code-server --home $CODE_SERVER_ADDRESS/healthz &
50-
yarn --frozen-lockfile
51-
yarn test
57+
with:
58+
args: ./ci/steps/test-e2e.sh
5259
- name: Upload test artifacts
5360
if: always()
5461
uses: actions/upload-artifact@v2
5562
with:
5663
name: test-videos
57-
path: ./test/videos
64+
path: ./test/e2e//videos
5865
- name: Remove release packages and test artifacts
59-
run: rm -rf ./release-packages ./test/videos
66+
run: rm -rf ./release-packages ./test/e2e/videos
6067

6168
release:
6269
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)