88
99 workflow_dispatch :
1010 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?'
1318 type : boolean
1419 required : false
1520 default : false
4752 automated-code-review :
4853 name : Automated Code Review
4954 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' }}
5156 env :
5257 XCODE_VERSION : " 15.4"
5358 steps :
6671 build-xcode15 :
6772 name : Build SDKs (Xcode 15.0)
6873 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' }}
7075 env :
7176 XCODE_VERSION : " 15.4"
7277 steps :
99104 INSTALL_YEETD : true
100105 INSTALL_SONAR : true
101106 - 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 }}"
103108 timeout-minutes : 120
104109 env :
105110 GITHUB_TOKEN : ${{ secrets.CI_BOT_GITHUB_TOKEN }} # to open a PR
@@ -134,7 +139,7 @@ jobs:
134139 allure_testops_launch :
135140 name : Launch Allure TestOps
136141 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' }}
138143 needs : build-test-app-and-frameworks
139144 outputs :
140145 launch_id : ${{ steps.get_launch_id.outputs.launch_id }}
@@ -153,7 +158,7 @@ jobs:
153158 test-e2e-debug :
154159 name : Test E2E UI (Debug)
155160 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' }}
157162 needs :
158163 - allure_testops_launch
159164 - build-test-app-and-frameworks
@@ -208,7 +213,7 @@ jobs:
208213 build-apps :
209214 name : Build Demo App
210215 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' }}
212217 needs : build-test-app-and-frameworks
213218 steps :
214219
0 commit comments