mirror of
https://github.com/coder/code-server.git
synced 2026-05-13 15:57:27 +02:00
Merge pull request #2852 from cdr/jsjoeio-2646-separate-testing
dev(testing): separate unit and e2e tests
This commit is contained in:
18
.github/workflows/ci.yaml
vendored
18
.github/workflows/ci.yaml
vendored
@@ -27,7 +27,15 @@ jobs:
|
||||
with:
|
||||
args: ./ci/steps/lint.sh
|
||||
|
||||
test:
|
||||
test-unit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Run unit tests
|
||||
uses: ./ci/images/debian10
|
||||
with:
|
||||
args: ./ci/steps/test-unit.sh
|
||||
test-e2e:
|
||||
needs: linux-amd64
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
@@ -44,19 +52,19 @@ jobs:
|
||||
run: |
|
||||
cd release-packages && tar -xzf code-server*-linux-amd64.tar.gz
|
||||
- uses: microsoft/playwright-github-action@v1
|
||||
- name: Install dependencies and run tests
|
||||
- name: Install dependencies and run end-to-end tests
|
||||
run: |
|
||||
./release-packages/code-server*-linux-amd64/bin/code-server --home $CODE_SERVER_ADDRESS/healthz &
|
||||
yarn --frozen-lockfile
|
||||
yarn test
|
||||
yarn test:e2e
|
||||
- name: Upload test artifacts
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: test-videos
|
||||
path: ./test/videos
|
||||
path: ./test/e2e/videos
|
||||
- name: Remove release packages and test artifacts
|
||||
run: rm -rf ./release-packages ./test/videos
|
||||
run: rm -rf ./release-packages ./test/e2e/videos
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user