This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 1
90 lines (76 loc) · 2.05 KB
/
cypress-nightly.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Cypress Nightly
on:
schedule:
# runs e2e tests every day at 4am
- cron: '0 4 * * *'
env:
REGISTRY: ghcr.io
NAME: nrfesampleapp
jobs:
e2e-chrome:
runs-on: ubuntu-20.04
name: E2E on Chrome
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cypress run
uses: cypress-io/github-action@v4
with:
browser: chrome
- name: Upload screenshots on failure
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots-chrome
path: cypress/screenshots
- name: Upload videos
uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-videos-chrome
path: cypress/videos
e2e-firefox:
runs-on: ubuntu-20.04
container:
image: cypress/included:11.2.0
options: --user 1001
name: E2E on Firefox
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cypress run
run: cypress run --browser firefox
- name: Upload screenshots on failure
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots-firefox
path: cypress/screenshots
- name: Upload videos
uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-videos-firefox
path: cypress/videos
e2e-edge:
runs-on: windows-latest
name: E2E on Edge
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cypress run
uses: cypress-io/github-action@v4
with:
browser: edge
- name: Upload screenshots on failure
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots-edge
path: cypress/screenshots
- name: Upload videos
uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-videos-edge
path: cypress/videos