Skip to content

Commit 66a0618

Browse files
committed
Fix cypress run
1 parent a725b9f commit 66a0618

File tree

3 files changed

+39
-40
lines changed

3 files changed

+39
-40
lines changed

.github/workflows/cypress-run.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
node: ['12', '14']
18+
node: ["12", "14"]
1919
name: Tests (Node.js ${{ matrix.node }})
2020
steps:
2121
- uses: actions/checkout@v2
@@ -39,3 +39,39 @@ jobs:
3939
run: yarn install
4040
- name: Run linter
4141
run: yarn run lint
42+
43+
cypress-run:
44+
runs-on: ubuntu-latest
45+
# Browser on which the tests are run
46+
container: cypress/browsers:node12.18.3-chrome87-ff82
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v2
50+
- name: Cache dependencies
51+
uses: actions/cache@v2
52+
with:
53+
path: |
54+
./node_modules
55+
key: ${{ hashFiles('yarn.lock') }}
56+
- name: Setup node
57+
uses: actions/setup-node@v1
58+
with:
59+
node-version: "14.x"
60+
- name: Install dependencies
61+
run: yarn --dev && yarn --cwd ./playgrounds/html
62+
- name: Browser tests
63+
uses: cypress-io/github-action@v2
64+
with:
65+
# Your starting script
66+
start: yarn playground
67+
# Creates and uploads GitHub artifacts in case of failure
68+
- uses: actions/upload-artifact@v1
69+
if: failure()
70+
with:
71+
name: cypress-screenshots
72+
path: cypress/screenshots
73+
- uses: actions/upload-artifact@v2
74+
if: failure()
75+
with:
76+
name: cypress-videos
77+
path: cypress/videos

bors.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
status = [
22
'linter-check',
33
'Tests (Node.js 12)',
4-
'Tests (Node.js 14)'
4+
'Tests (Node.js 14)',
5+
'cypress-run'
56
]
67
# 1 hour timeout
78
timeout-sec = 3600

0 commit comments

Comments
 (0)