generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
130 lines (117 loc) · 4.12 KB
/
.tests.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: Test Workflow
on:
pull_request:
workflow_call:
inputs:
### Required
target:
description: 'PR number, test or prod.'
default: 'test'
required: true
type: string
jobs:
update-term-oversize:
name: (BCEID) Update Term Oversize
runs-on: ubuntu-22.04
defaults:
run:
working-directory: tests/
strategy:
matrix:
browser: [chrome, firefox, edge]
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: cypress-io/[email protected]
name: Cypress run
env:
CYPRESS_baseUrl: https://${{ github.event.repository.name }}-${{ inputs.target || 'test' }}-frontend.apps.silver.devops.gov.bc.ca/
CYPRESS_bceid_username: ${{vars.BCEID_USERNAME}}
CYPRESS_bceid_password: ${{secrets.BCEID_PASSWORD}}
with:
browser: ${{ matrix.browser }}
config: pageLoadTimeout=10000,video=true
spec: cypress/e2e/bceid-update-term-oversize.cy.js
working-directory: tests
- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-screenshots
path: tests/cypress/screenshots/
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-videos
path: tests/cypress/videos/
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
new-term-oversize:
name: (BCEID) New Term Oversize
runs-on: ubuntu-22.04
defaults:
run:
working-directory: tests/
strategy:
matrix:
browser: [chrome, firefox, edge]
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: cypress-io/[email protected]
name: Cypress run
env:
CYPRESS_baseUrl: https://${{ github.event.repository.name }}-${{ inputs.target || 'test' }}-frontend.apps.silver.devops.gov.bc.ca/
CYPRESS_bceid_username: ${{vars.BCEID_USERNAME}}
CYPRESS_bceid_password: ${{secrets.BCEID_PASSWORD}}
with:
browser: ${{ matrix.browser }}
config: pageLoadTimeout=10000,video=true
spec: cypress/e2e/bceid-new-term-oversize.cy.js
working-directory: tests
- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-screenshots
path: tests/cypress/screenshots/
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-videos
path: tests/cypress/videos/
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
new-term-overweight:
name: (BCEID) New Term Overweight
runs-on: ubuntu-22.04
defaults:
run:
working-directory: tests/
strategy:
matrix:
browser: [chrome, firefox, edge]
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: cypress-io/[email protected]
name: Cypress run
env:
CYPRESS_baseUrl: https://${{ github.event.repository.name }}-${{ inputs.target || 'test' }}-frontend.apps.silver.devops.gov.bc.ca/
CYPRESS_bceid_username: ${{vars.BCEID_USERNAME}}
CYPRESS_bceid_password: ${{secrets.BCEID_PASSWORD}}
with:
browser: ${{ matrix.browser }}
config: pageLoadTimeout=10000,video=true
spec: cypress/e2e/bceid-new-term-overweight.cy.js
working-directory: tests
- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-screenshots
path: tests/cypress/screenshots/
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-videos
path: tests/cypress/videos/
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`