-
Notifications
You must be signed in to change notification settings - Fork 348
44 lines (36 loc) · 1.3 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
name: example-firefox
on:
push:
branches:
- 'master'
pull_request:
workflow_dispatch:
jobs:
# ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ #
# An example test using the Mozilla Firefox browser with Cypress v9 is no longer included here.
#
# Firefox connects unreliably with Cypress v9, as described in the closed Cypress issue
# https://github.com/cypress-io/cypress/issues/23215.
# It is not planned to resolve the issue in Cypress v9.
# The problem is however resolved in Cypress v10 and later.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
firefox:
runs-on: ubuntu-22.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/browser
browser: firefox
# report screenshot size and store the screenshots as test artifacts
- uses: actions/upload-artifact@v3
with:
name: screenshots-in-firefox
path: examples/browser/cypress/screenshots
- run: npx image-size cypress/screenshots/**/*.png
working-directory: examples/browser