forked from cypress-io/github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (57 loc) · 1.92 KB
/
example-firefox.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: example-firefox
on:
push:
branches:
- 'master'
pull_request:
jobs:
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v9 and lower ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
firefox-v9:
# should include Firefox browser install
# https://github.com/actions/virtual-environments
#
# skip Firefox test on Cypress v9 due to Cypress issue
# https://github.com/cypress-io/cypress/issues/23215
if: false
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Firefox
uses: ./
timeout-minutes: 3
with:
# let's show browser and system info
build: npx cypress info
working-directory: examples/v9/firefox
browser: firefox
# report screenshot size and store the screenshots as test artifacts
- uses: actions/upload-artifact@v3
with:
name: screenshots-in-firefox
path: examples/firefox/cypress/screenshots
- run: npx image-size cypress/screenshots/**/*.png
working-directory: examples/v9/firefox
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
firefox-v10:
# should include Firefox browser install
# https://github.com/actions/virtual-environments
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Firefox
uses: ./
timeout-minutes: 3
with:
# let's show browser and system info
build: npx cypress info
working-directory: examples/v10/firefox
browser: firefox
# report screenshot size and store the screenshots as test artifacts
- uses: actions/upload-artifact@v3
with:
name: screenshots-in-firefox
path: examples/v10/firefox/cypress/screenshots
- run: npx image-size cypress/screenshots/**/*.png
working-directory: examples/v10/firefox