generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (53 loc) · 1.64 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
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
spec: cypress/e2e/bceid-update-term-oversize.cy.js
working-directory: tests
- name: DEBUG
run: |
ls
ls tests
find . | grep screenshots
find . | grep video
- 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-video
path: tests/cypress/video
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`