-
Notifications
You must be signed in to change notification settings - Fork 3
112 lines (95 loc) · 3.28 KB
/
custom_exec.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
name: Manual Execution
permissions:
contents: write
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
log_level:
description: Specifies the log level
required: true
type: choice
default: 'info'
options:
- 'trace'
- 'debug'
- 'info'
- 'warn'
- 'error'
- 'silent'
suite:
description: Suite to be executed
default: 'debug'
required: true
spec:
description: Spec to be executed. (Won't be used if suite is specified)
default: ''
required: false
webdriver_spec_file_retries:
description: Specifies the number of retries for each spec file
default: '0'
required: false
max_instances:
description: Maximum number of instances to be executed
default: ''
required: false
chrome_instances:
description: Amount of Chrome Instances to be used. Won't use Chrome when its value is a blank string
default: '1'
required: false
firefox_instances:
description: Amount of Firefox Instances to be used. Won't use Firefox when its value is a blank string
default: ''
required: false
browser_visible:
description: Specifies whether the browser is visible on the Remote Dashboard. If false, the browsers will run in headless mode.
type: boolean
default: true
required: false
enable_video:
description: Specifies whether browser is recorded or not. Will be disabled if the browsers run in headless mode.
type: boolean
default: true
required: false
update_report:
description: Specifies whether the report is updated or not.
type: boolean
default: false
required: false
jobs:
run-workflow-suite:
if: github.event.inputs.suite != ''
strategy:
fail-fast: false
matrix:
jobs: [0, 1, 2, 3, 4]
uses: ./.github/workflows/automation_exec.yml
with:
ref: ${{ github.ref }}
log_level: ${{ github.event.inputs.log_level }}
suite: ${{ github.event.inputs.suite }}
spec_ci_index: ${{ matrix.jobs }}
spec_ci_total: 5
max_instances: ${{ github.event.inputs.max_instances }}
chrome_instances: ${{ github.event.inputs.chrome_instances }}
firefox_instances: ${{ github.event.inputs.firefox_instances }}
browser_visible: ${{ github.event.inputs.browser_visible }}
enable_video: ${{ github.event.inputs.enable_video }}
run-workflow-spec:
if: github.event.inputs.spec != ''
strategy:
fail-fast: false
matrix:
jobs: [0, 1, 2, 3, 4]
uses: ./.github/workflows/automation_exec.yml
with:
ref: ${{ github.ref }}
log_level: ${{ github.event.inputs.log_level }}
spec: ${{ github.event.inputs.spec }}
spec_ci_index: ${{ matrix.jobs }}
spec_ci_total: 5
max_instances: ${{ github.event.inputs.max_instances }}
chrome_instances: ${{ github.event.inputs.chrome_instances }}
firefox_instances: ${{ github.event.inputs.firefox_instances }}
browser_visible: ${{ github.event.inputs.browser_visible }}
enable_video: ${{ github.event.inputs.enable_video }}