File tree Expand file tree Collapse file tree 1 file changed +25
-9
lines changed Expand file tree Collapse file tree 1 file changed +25
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : Cypress Tests
2
2
3
- on : [push]
3
+ on : [push,pull_request ]
4
4
5
5
jobs :
6
6
7
- test-browser :
7
+ test-cypress :
8
8
name : itk-wasm browser tests
9
9
runs-on : ubuntu-20.04
10
- container :
11
- image : cypress/browsers:node16.14.0-chrome99-ff97
12
- options : --user 1001
13
10
14
11
steps :
15
12
- name : Checkout
16
13
uses : actions/checkout@v3
17
14
18
15
- name : Install
19
16
run : |
20
- npm install
17
+ npm ci
21
18
22
19
- name : Build
23
20
run : |
24
21
npm run build
25
22
26
23
- name : Test with Chrome
27
- uses : cypress-io/github-action@v2
24
+ uses : cypress-io/github-action@v4
28
25
with :
29
26
browser : chrome
30
- start : npm start
27
+ command : npm run test:chrome
28
+
29
+ - uses : actions/upload-artifact@v2
30
+ if : failure()
31
+ with :
32
+ name : cypress-screenshots
33
+ path : cypress/screenshots
34
+
35
+ - uses : actions/upload-artifact@v2
36
+ if : always()
37
+ with :
38
+ name : cypress-videos
39
+ path : cypress/videos
31
40
32
41
- name : Test with Firefox
33
- uses : cypress-io/github-action@v2
42
+ uses : cypress-io/github-action@v4
34
43
with :
35
44
browser : firefox
45
+ command : npm run test:firefox
46
+
47
+ - uses : actions/upload-artifact@v2
48
+ if : failure()
49
+ with :
50
+ name : cypress-screenshots
51
+ path : cypress/screenshots
You can’t perform that action at this time.
0 commit comments