forked from PrestaShop/ga.tests.ui.pr
-
Notifications
You must be signed in to change notification settings - Fork 0
171 lines (168 loc) · 5.42 KB
/
pr_test_single_campaign.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
name: Testing PrestaShop pull requests with a single test command
on:
workflow_dispatch:
inputs:
pr_number:
description: Pull request Id
required: true
base_branch:
type: choice
description: Base branch to rebase the PR
required: true
options:
- 'develop'
- '9.0.x'
- '8.2.x'
- '8.1.x'
- '8.0.x'
- '1.7.8.x'
default: 'develop'
test_command:
type: choice
description: Select one test command (it may not be available on the selected branch)
required: true
options:
- 'audit'
- 'cldr'
- 'functional:API'
- 'functional:BO:login'
- 'functional:BO:dashboard'
- 'functional:BO:orders:01:0-1'
- 'functional:BO:orders:01-create-orders'
- 'functional:BO:orders:01-view-and-edit-order'
- 'functional:BO:orders:02'
- 'functional:BO:orders:03-05'
- 'functional:BO:catalog:01-02'
- 'functional:BO:catalog:03-04'
- 'functional:BO:catalog:05-06'
- 'functional:BO:catalog:07-08'
- 'functional:BO:customer:01'
- 'functional:BO:customer:02-03'
- 'functional:BO:customer-service'
- 'functional:BO:modules'
- 'functional:BO:design'
- 'functional:BO:shipping'
- 'functional:BO:payment'
- 'functional:BO:international:01'
- 'functional:BO:international:02'
- 'functional:BO:international:03-04'
- 'functional:BO:shop-parameters:01-02'
- 'functional:BO:shop-parameters:03-04'
- 'functional:BO:shop-parameters:05-07'
- 'functional:BO:advanced-parameters:01-06'
- 'functional:BO:advanced-parameters:07-10'
- 'functional:BO:advanced-parameters:11-12'
- 'functional:BO:header'
- 'functional:FO:01-03'
- 'functional:FO:04-07'
- 'functional:FO:08-12'
- 'functional:FO:classic:01-03'
- 'functional:FO:classic:04-07'
- 'functional:FO:classic:08-12'
- 'functional:FO:hummingbird:01-03'
- 'functional:FO:hummingbird:04-07'
- 'functional:FO:hummingbird:08-12'
- 'functional:productV2'
- 'functional:WS'
- 'modules'
- 'modules:01-09'
- 'modules:10-19'
- 'modules:20-29'
- 'modules:30-39'
- 'regression'
- 'sanity'
- 'sanity:productV2'
fast_fail:
type: boolean
description: Fast fail on first error
required: true
default: false
take_screenshot_after_each_step:
type: boolean
description: Take a screenshot after each step
required: true
default: false
ps_mode_dev:
type: boolean
description: Use developer mode?
required: true
rebase_or_merge:
type: choice
required: true
description: Rebase or merge the pull request
options:
- 'rebase'
- 'merge'
default: 'rebase'
php_version:
type: choice
description: PHP version
required: true
options:
- '7.3'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
default: '8.1'
node_version:
type: choice
description: Node version
required: true
options:
- '14.21.3'
- '16.20.1'
- '20.17.0'
default: '20.17.0'
DB_SERVER:
type: choice
description: Database
required: true
options:
- 'mysql'
- 'mariadb'
default: 'mysql'
jobs:
build-shop:
name: Prebuild shop and export artifacts for ${{ inputs.test_command }}
if: inputs.test_command != 'sanity'
uses: ./.github/workflows/build-shop.yml
with:
pr_number: ${{ inputs.pr_number }}
base_branch: ${{ inputs.base_branch }}
ps_mode_dev: ${{ inputs.ps_mode_dev }}
rebase_or_merge: ${{ inputs.rebase_or_merge }}
php_version: ${{ inputs.php_version }}
node_version: ${{ inputs.node_version }}
DB_SERVER: ${{ inputs.DB_SERVER }}
test-pr:
name: Run single campaign ${{ inputs.test_command }}
if: inputs.test_command != 'sanity'
needs: build-shop
uses: ./.github/workflows/test-with-prebuilt-shop.yml
with:
base_branch: ${{ inputs.base_branch }}
ps_mode_dev: ${{ inputs.ps_mode_dev }}
php_version: ${{ inputs.php_version }}
node_version: ${{ inputs.node_version }}
test_command: ${{ inputs.test_command }}
fast_fail: ${{ inputs.fast_fail }}
take_screenshot_after_each_step: ${{ inputs.take_screenshot_after_each_step }}
DB_SERVER: ${{ inputs.DB_SERVER }}
# Sanity campaign is run differently
sanity-test:
name: Run sanity campaign
if: inputs.test_command == 'sanity'
uses: ./.github/workflows/test-sanity.yml
with:
pr_number: ${{ inputs.pr_number }}
base_branch: ${{ inputs.base_branch }}
ps_mode_dev: ${{ inputs.ps_mode_dev }}
rebase_or_merge: ${{ inputs.rebase_or_merge }}
php_version: ${{ inputs.php_version }}
node_version: ${{ inputs.node_version }}
fast_fail: ${{ inputs.fast_fail }}
take_screenshot_after_each_step: ${{ inputs.take_screenshot_after_each_step }}
DB_SERVER: ${{ inputs.DB_SERVER }}