-
Notifications
You must be signed in to change notification settings - Fork 9
59 lines (53 loc) · 1.8 KB
/
e2e-testing.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: E2E Testing
on:
workflow_dispatch:
inputs:
case:
description: "E2E Case (all/entity/relationship)"
required: false
default: ""
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_AUTH_RESET_URL: "https://auth-api-dev.pathfinder.gov.bc.ca/test/reset"
CYPRESS_DATA_RESET_URL: "https://data-reset-tool-dev.pathfinder.gov.bc.ca"
CYPRESS_BCRS_DOMAIN: "https://dev.bcregistry.ca/business"
jobs:
case:
runs-on: ubuntu-20.04
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving the Dashboard hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
# run 3 copies of the current job in parallel
containers: [1]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Case Name
run: |
echo "CASE_NAME=${{ github.event.inputs.case }}" >> $GITHUB_ENV
echo ${{env.CASE_NAME}}
- name: Run Entity E2E test cases
if: env.CASE_NAME == 'all' || env.CASE_NAME == 'entity'
uses: cypress-io/github-action@v2
continue-on-error: true
with:
record: true
parallel: true
spec: cypress/integration/entity/*.spec.js
working-directory: ./e2e-testing
group: entity
- name: Run Relationship E2E test cases
if: env.CASE_NAME == 'all' || env.CASE_NAME == 'relationship'
uses: cypress-io/github-action@v2
continue-on-error: true
with:
record: true
parallel: true
spec: cypress/integration/relationship/*.spec.js
working-directory: ./e2e-testing
group: relationship