chore: run the e2e tests in the pipeline
parent
f194c394d2
commit
35463b9631
|
@ -27,8 +27,8 @@ jobs:
|
||||||
run: yarn --frozen-lockfile
|
run: yarn --frozen-lockfile
|
||||||
- name: Run eslint
|
- name: Run eslint
|
||||||
run: yarn run eslint
|
run: yarn run eslint
|
||||||
integration:
|
test:
|
||||||
name: 'integration'
|
name: 'test'
|
||||||
needs: [lint]
|
needs: [lint]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -50,8 +50,20 @@ jobs:
|
||||||
run: cd playground && yarn install --unsafe-perm
|
run: cd playground && yarn install --unsafe-perm
|
||||||
- name: Build playground
|
- name: Build playground
|
||||||
run: yarn playground:build
|
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
|
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
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v2
|
uses: codecov/codecov-action@v2
|
||||||
with:
|
with:
|
||||||
|
@ -59,20 +71,3 @@ jobs:
|
||||||
flags: unit
|
flags: unit
|
||||||
verbose: true
|
verbose: true
|
||||||
fail_ci_if_error: 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
|
|
||||||
|
|
Loading…
Reference in New Issue