Skip to content

Commit 35463b9

Browse files
committed
chore: run the e2e tests in the pipeline
1 parent f194c39 commit 35463b9

1 file changed

Lines changed: 15 additions & 20 deletions

File tree

.github/workflows/tests.yml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
run: yarn --frozen-lockfile
2828
- name: Run eslint
2929
run: yarn run eslint
30-
integration:
31-
name: 'integration'
30+
test:
31+
name: 'test'
3232
needs: [lint]
3333
runs-on: ubuntu-latest
3434
strategy:
@@ -50,29 +50,24 @@ jobs:
5050
run: cd playground && yarn install --unsafe-perm
5151
- name: Build playground
5252
run: yarn playground:build
53-
- name: Run test
53+
# - name: Run unit tests
54+
# run: yarn test:unit
55+
- name: Run integration tests
5456
run: yarn run -s test:integration
57+
- name: Run end-to-end tests
58+
uses: cypress-io/github-action@v6
59+
with:
60+
start: yarn playground:start
61+
- uses: actions/upload-artifact@v4
62+
if: failure()
63+
with:
64+
name: cypress-screenshots
65+
path: cypress/screenshots
66+
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
5567
- name: Upload coverage to Codecov
5668
uses: codecov/codecov-action@v2
5769
with:
5870
token: ${{ secrets.CODECOV }}
5971
flags: unit
6072
verbose: true
6173
fail_ci_if_error: true
62-
# unit:
63-
# name: 'unit'
64-
# needs: [lint]
65-
# runs-on: ubuntu-latest
66-
# strategy:
67-
# matrix:
68-
# node: [16, 18, 20]
69-
# steps:
70-
# - uses: actions/checkout@v2
71-
# - uses: actions/setup-node@v2
72-
# with:
73-
# node-version: ${{ matrix.node }}
74-
# cache: 'yarn'
75-
# - name: Install dependencies
76-
# run: yarn --ignore-scripts --frozen-lockfile
77-
# - name: Run test
78-
# run: yarn run -s test:unit

0 commit comments

Comments
 (0)