-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (66 loc) · 1.96 KB
/
manual_e2e_test_run.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
name: Manual E2E Test Run
on:
workflow_dispatch:
inputs:
suite:
type: choice
description: Select test suite
default: all
options:
- all
- find
- applicant
- admin
- superadmin
- api-dashboard
specs:
type: string
description: (optional) enter spec files, will override suites above
required: false
browser:
type: choice
description: Select browser to run tests against
default: all
options:
- all
- chrome
- firefox
- webkit
notify:
type: choice
description: Notify on Slack?
default: "false"
options:
- false
- true
environment:
type: choice
description: Environment
default: SANDBOX
options:
- SANDBOX
- QA
repeat:
type: number
description: Select the number of times to run
default: 1
jobs:
call-reusable-e2e-test-run-workflow:
uses: ./.github/workflows/reusable_e2e_test_run.yml
with:
specs: ${{ inputs.specs != '' && inputs.specs || inputs.suite == 'all' && 'cypress/e2e/**/*' || format('cypress/e2e/{0}/**/*', inputs.suite) }}
browser: ${{ inputs.browser }}
notify: ${{ inputs.notify }}
environment: ${{ inputs.environment }}
repeat: ${{ inputs.repeat }}
secrets: inherit
if: ${{ !cancelled() && inputs.browser != 'all' }}
call-reusable-multi-browser-e2e-test-run-workflow:
uses: ./.github/workflows/reusable_multi_browser_e2e_test_run.yml
with:
specs: ${{ inputs.specs != '' && inputs.specs || inputs.suite == 'all' && 'cypress/e2e/**/*' || format('cypress/e2e/{0}/**/*', inputs.suite) }}
notify: ${{ inputs.notify }}
environment: ${{ inputs.environment }}
repeat: ${{ inputs.repeat }}
secrets: inherit
if: ${{ !cancelled() && inputs.browser == 'all' }}