File tree Expand file tree Collapse file tree 3 files changed +40
-41
lines changed Expand file tree Collapse file tree 3 files changed +40
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ jobs:
15
15
strategy :
16
16
fail-fast : false
17
17
matrix :
18
- node : ['12', '14' ]
18
+ node : ["12", "14" ]
19
19
name : Tests (Node.js ${{ matrix.node }})
20
20
steps :
21
21
- uses : actions/checkout@v2
22
22
- name : Setup node
23
- uses : actions/setup-node@v1
23
+ uses : actions/setup-node@v2
24
24
with :
25
25
node-version : ${{ matrix.node }}
26
26
- name : Install dependencies
39
39
run : yarn install
40
40
- name : Run linter
41
41
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
Original file line number Diff line number Diff line change 1
1
status = [
2
2
' linter-check' ,
3
3
' Tests (Node.js 12)' ,
4
- ' Tests (Node.js 14)'
4
+ ' Tests (Node.js 14)' ,
5
+ ' cypress-run'
5
6
]
6
7
# 1 hour timeout
7
8
timeout-sec = 3600
You can’t perform that action at this time.
0 commit comments