forked from cypress-io/github-action
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 1.12 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
name: example-firefox
on: push
jobs:
firefox:
runs-on: ubuntu-latest
# https://github.com/cypress-io/cypress-docker-images
container:
image: cypress/browsers:node12.16.1-chrome80-ff73
# "magical" user id that matches id for created home folder
# https://github.com/cypress-io/github-action/issues/104
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v1
# for debugging permission problems
- run: id
# the home folder is set by the GH docker start
# -e "HOME=/github/home"
# and has permissions (user 1001)
# drwxr-xr-x 2 1001 115
- run: ls -la ~
- name: Firefox
uses: ./
timeout-minutes: 3
with:
working-directory: examples/firefox
browser: firefox
# report screenshot size and store the screenshots as test artifacts
- uses: actions/upload-artifact@v1
with:
name: screenshots-in-firefox
path: examples/firefox/cypress/screenshots
- run: npx image-size cypress/screenshots/**/*.png
working-directory: examples/firefox