forked from cypress-io/github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 1.79 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
name: example-firefox
on:
push:
branches:
- 'master'
pull_request:
jobs:
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v9 and lower ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
firefox:
# should include Firefox browser install
# https://github.com/actions/virtual-environments
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- 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@v2
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-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- 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@v2
with:
name: screenshots-in-firefox
path: examples/v10/firefox/cypress/screenshots
- run: npx image-size cypress/screenshots/**/*.png
working-directory: examples/v10/firefox