From aeaf11ced60805b9882d52bacf9c590e79e88ea1 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Tue, 9 Mar 2021 16:35:54 -0700 Subject: [PATCH] refactor: update ci.yaml, test:unit and test:e2e --- .github/workflows/ci.yaml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c861a808..8bef3db6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,7 +27,16 @@ 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: @@ -45,18 +54,16 @@ jobs: cd release-packages && tar -xzf code-server*-linux-amd64.tar.gz - uses: microsoft/playwright-github-action@v1 - name: Install dependencies and run tests - run: | - ./release-packages/code-server*-linux-amd64/bin/code-server --home $CODE_SERVER_ADDRESS/healthz & - yarn --frozen-lockfile - yarn test + with: + args: ./ci/steps/test-e2e.sh - 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