refactor: update ci.yaml, test:unit and test:e2e
This commit is contained in:
parent
6fd30d91ea
commit
aeaf11ced6
21
.github/workflows/ci.yaml
vendored
21
.github/workflows/ci.yaml
vendored
@ -27,7 +27,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
args: ./ci/steps/lint.sh
|
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
|
needs: linux-amd64
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
@ -45,18 +54,16 @@ jobs:
|
|||||||
cd release-packages && tar -xzf code-server*-linux-amd64.tar.gz
|
cd release-packages && tar -xzf code-server*-linux-amd64.tar.gz
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- name: Install dependencies and run tests
|
- name: Install dependencies and run tests
|
||||||
run: |
|
with:
|
||||||
./release-packages/code-server*-linux-amd64/bin/code-server --home $CODE_SERVER_ADDRESS/healthz &
|
args: ./ci/steps/test-e2e.sh
|
||||||
yarn --frozen-lockfile
|
|
||||||
yarn test
|
|
||||||
- name: Upload test artifacts
|
- name: Upload test artifacts
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: test-videos
|
name: test-videos
|
||||||
path: ./test/videos
|
path: ./test/e2e//videos
|
||||||
- name: Remove release packages and test artifacts
|
- name: Remove release packages and test artifacts
|
||||||
run: rm -rf ./release-packages ./test/videos
|
run: rm -rf ./release-packages ./test/e2e/videos
|
||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user