Skip to content

Commit f56b8b4

Browse files
bors[bot]bidoubiwa
andauthored
Merge #455
455: Fix cypress run r=curquiza a=bidoubiwa Co-authored-by: Charlotte Vermandel <[email protected]>
2 parents a725b9f + d00973a commit f56b8b4

File tree

3 files changed

+40
-41
lines changed

3 files changed

+40
-41
lines changed

.github/workflows/cypress-run.yml

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

.github/workflows/tests.yml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ 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
2222
- name: Setup node
23-
uses: actions/setup-node@v1
23+
uses: actions/setup-node@v2
2424
with:
2525
node-version: ${{ matrix.node }}
2626
- name: Install dependencies
@@ -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@v2
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@v2
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)