Skip to content

Commit 1bff916

Browse files
committed
refactor: update ci.yaml, test:unit and test:e2e
1 parent 309688f commit 1bff916

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
@@ -21,7 +21,16 @@ jobs:
2121
with:
2222
args: ./ci/steps/lint.sh
2323

24-
test:
24+
test-unit:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v1
28+
- name: Run unit tests
29+
uses: ./ci/images/debian10
30+
with:
31+
args: ./ci/steps/test-unit.sh
32+
33+
test-e2e:
2534
needs: linux-amd64
2635
runs-on: ubuntu-latest
2736
env:
@@ -39,18 +48,16 @@ jobs:
3948
cd release-packages && tar -xzf code-server*-linux-amd64.tar.gz
4049
- uses: microsoft/playwright-github-action@v1
4150
- name: Install dependencies and run tests
42-
run: |
43-
./release-packages/code-server*-linux-amd64/bin/code-server --home $CODE_SERVER_ADDRESS/healthz &
44-
yarn --frozen-lockfile
45-
yarn test
51+
with:
52+
args: ./ci/steps/test-e2e.sh
4653
- name: Upload test artifacts
4754
if: always()
4855
uses: actions/upload-artifact@v2
4956
with:
5057
name: test-videos
51-
path: ./test/videos
58+
path: ./test/e2e//videos
5259
- name: Remove release packages and test artifacts
53-
run: rm -rf ./release-packages ./test/videos
60+
run: rm -rf ./release-packages ./test/e2e/videos
5461

5562
release:
5663
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)