@@ -14,39 +14,43 @@ jobs:
14
14
- name : Checkout
15
15
uses : actions/checkout@v4
16
16
17
- - name : Cypress info
17
+ - name : Chrome headless
18
18
uses : ./
19
19
with :
20
- # just for full picture after installing Cypress
21
- # print information about detected browsers, etc
20
+ # Print information about the system and current environment
21
+ # including detected browsers
22
+ # which are pre-installed in GitHub-hosted runners
22
23
# see https://on.cypress.io/command-line#cypress-info
24
+ # We do not need the build parameter to build an app here
25
+ # because the remote https://example.cypress.io site
26
+ # is already built and running, and so for convenience
27
+ # we repurpose the build parameter to get cypress info instead.
23
28
build : npx cypress info
24
29
working-directory : examples/browser
25
-
26
- - name : Chrome
27
- uses : ./
28
- with :
29
- working-directory : examples/browser
30
30
browser : chrome
31
+ # As of Cypress v8.0 the `cypress run` command
32
+ # executes tests in `headless` mode by default
31
33
32
34
- uses : actions/upload-artifact@v3
33
35
with :
34
- name : screenshots-in -chrome
36
+ name : screenshots-headless -chrome
35
37
path : examples/browser/cypress/screenshots
36
38
37
39
- run : npx image-size cypress/screenshots/**/*.png
38
40
working-directory : examples/browser
39
41
40
- - name : Chrome headless
42
+ - name : Chrome headed
41
43
uses : ./
42
44
with :
45
+ # Cypress and dependencies are already installed
46
+ install : false
43
47
working-directory : examples/browser
44
48
browser : chrome
45
- headed : false
49
+ headed : true
46
50
47
51
- uses : actions/upload-artifact@v3
48
52
with :
49
- name : screenshots-in-headless -chrome
53
+ name : screenshots-headed -chrome
50
54
path : examples/browser/cypress/screenshots
51
55
52
56
- run : npx image-size cypress/screenshots/**/*.png
0 commit comments