chore: run the e2e tests in the pipeline

pull/166/head
Boaz Poolman 2024-12-29 22:41:44 +00:00
parent f194c394d2
commit 35463b9631
1 changed files with 15 additions and 20 deletions

View File

@ -27,8 +27,8 @@ jobs:
run: yarn --frozen-lockfile
- name: Run eslint
run: yarn run eslint
integration:
name: 'integration'
test:
name: 'test'
needs: [lint]
runs-on: ubuntu-latest
strategy:
@ -50,8 +50,20 @@ jobs:
run: cd playground && yarn install --unsafe-perm
- name: Build playground
run: yarn playground:build
- name: Run test
# - name: Run unit tests
# run: yarn test:unit
- name: Run integration tests
run: yarn run -s test:integration
- name: Run end-to-end tests
uses: cypress-io/github-action@v6
with:
start: yarn playground:start
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
@ -59,20 +71,3 @@ jobs:
flags: unit
verbose: true
fail_ci_if_error: true
# unit:
# name: 'unit'
# needs: [lint]
# runs-on: ubuntu-latest
# strategy:
# matrix:
# node: [16, 18, 20]
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: ${{ matrix.node }}
# cache: 'yarn'
# - name: Install dependencies
# run: yarn --ignore-scripts --frozen-lockfile
# - name: Run test
# run: yarn run -s test:unit