8
8
9
9
workflow_dispatch :
10
10
inputs :
11
- snapshots :
12
- description : ' Should Snapshots be recorded on CI?'
11
+ record_snapshots :
12
+ description : ' Record missing snapshots on CI?'
13
+ type : boolean
14
+ required : false
15
+ default : false
16
+ remove_and_record_snapshots :
17
+ description : ' Reset all the snapshots on CI?'
13
18
type : boolean
14
19
required : false
15
20
default : false
47
52
automated-code-review :
48
53
name : Automated Code Review
49
54
runs-on : macos-15
50
- if : ${{ github.event.inputs.snapshots != 'true' }}
55
+ if : ${{ github.event.inputs.record_snapshots != 'true' && github.event.inputs.remove_and_record_snapshots != 'true' }}
51
56
env :
52
57
XCODE_VERSION : " 15.4"
53
58
steps :
66
71
build-xcode15 :
67
72
name : Build SDKs (Xcode 15.0)
68
73
runs-on : macos-15
69
- if : ${{ github.event.inputs.snapshots != 'true' }}
74
+ if : ${{ github.event.inputs.record_snapshots != 'true' && github.event.inputs.remove_and_record_snapshots != 'true' }}
70
75
env :
71
76
XCODE_VERSION : " 15.4"
72
77
steps :
99
104
INSTALL_YEETD : true
100
105
INSTALL_SONAR : true
101
106
- name : Run UI Tests (Debug)
102
- run : bundle exec fastlane test_ui device:"${{ env.IOS_SIMULATOR_DEVICE }}" record:${{ github.event.inputs.snapshots }}
107
+ run : bundle exec fastlane test_ui device:"${{ env.IOS_SIMULATOR_DEVICE }}" record:" ${{ github.event.inputs.record_snapshots }}" remove_and_record:"${{ github.event.inputs.remove_and_record_snapshots }}"
103
108
timeout-minutes : 120
104
109
env :
105
110
GITHUB_TOKEN : ${{ secrets.CI_BOT_GITHUB_TOKEN }} # to open a PR
@@ -134,7 +139,7 @@ jobs:
134
139
allure_testops_launch :
135
140
name : Launch Allure TestOps
136
141
runs-on : macos-13
137
- if : ${{ github.event.inputs.snapshots != 'true' }}
142
+ if : ${{ github.event.inputs.record_snapshots != 'true' && github.event.inputs.remove_and_record_snapshots != 'true' }}
138
143
needs : build-test-app-and-frameworks
139
144
outputs :
140
145
launch_id : ${{ steps.get_launch_id.outputs.launch_id }}
@@ -153,7 +158,7 @@ jobs:
153
158
test-e2e-debug :
154
159
name : Test E2E UI (Debug)
155
160
runs-on : macos-15
156
- if : ${{ github.event.inputs.snapshots != 'true' }}
161
+ if : ${{ github.event.inputs.record_snapshots != 'true' && github.event.inputs.remove_and_record_snapshots != 'true' }}
157
162
needs :
158
163
- allure_testops_launch
159
164
- build-test-app-and-frameworks
@@ -208,7 +213,7 @@ jobs:
208
213
build-apps :
209
214
name : Build Demo App
210
215
runs-on : macos-14
211
- if : ${{ github.event.inputs.snapshots != 'true' }}
216
+ if : ${{ github.event.inputs.record_snapshots != 'true' && github.event.inputs.remove_and_record_snapshots != 'true' }}
212
217
needs : build-test-app-and-frameworks
213
218
steps :
214
219
0 commit comments