forked from cypress-io/github-action
-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (28 loc) · 829 Bytes
/
example-firefox.yml
File metadata and controls
32 lines (28 loc) · 829 Bytes
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
name: example-firefox
on:
push:
branches:
- 'master'
pull_request:
workflow_dispatch:
jobs:
firefox:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Firefox
uses: ./ # if copying, replace with cypress-io/github-action@v7
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@v7
with:
name: screenshots-in-firefox
path: examples/browser/cypress/screenshots
- run: npx image-size cypress/screenshots/**/*.png
working-directory: examples/browser