4444 derived_data/Build/**/*.xctestrun
4545 derived_data/Build/**/*.framework
4646
47+ automated-code-review :
48+ name : Automated Code Review
49+ runs-on : macos-13
50+ env :
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52+ GITHUB_PR_NUM : ${{ github.event.number }}
53+ XCODE_VERSION : " 15.0.1"
54+ if : ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
55+ steps :
56+ 57+ - uses : ./.github/actions/bootstrap
58+ - name : Run Danger
59+ run : bundle exec danger
60+ - name : Run Fastlane Linting
61+ run : bundle exec fastlane rubocop
62+ - name : Run SwiftFormat Linting
63+ run : ./Scripts/run-linter.sh
64+ - name : Run Podspec Linting
65+ if : startsWith(github.event.pull_request.head.ref, 'release/')
66+ run : bundle exec fastlane pod_lint
67+
68+ build-xcode15 :
69+ name : Build SDKs (Xcode 15.0)
70+ runs-on : macos-13
71+ if : ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
72+ env :
73+ XCODE_VERSION : " 15.0.1"
74+ steps :
75+ 76+ - uses : ./.github/actions/ruby-cache
77+ - name : List Xcode versions
78+ run : mdfind "kMDItemCFBundleIdentifier = 'com.apple.dt.Xcode'"
79+ timeout-minutes : 25
80+ - name : Build SwiftUI
81+ run : bundle exec fastlane test_ui device:"iPhone 15" build_for_testing:true
82+ timeout-minutes : 25
83+ - name : Install Bot SSH Key
84+ uses :
webfactory/[email protected] 85+ with :
86+ ssh-private-key : ${{ secrets.BOT_SSH_PRIVATE_KEY }}
87+ - name : Build XCFrameworks
88+ run : bundle exec fastlane build_xcframeworks
89+ timeout-minutes : 25
90+ env :
91+ MATCH_PASSWORD : ${{ secrets.MATCH_PASSWORD }}
92+ APPSTORE_API_KEY : ${{ secrets.APPSTORE_API_KEY }}
93+
4794 test-ui-debug :
4895 name : Test SwiftUI (Debug)
4996 runs-on : macos-14
@@ -103,12 +150,33 @@ jobs:
103150 fastlane/test_output/logs/*/Diagnostics/**/*.txt
104151 fastlane/test_output/logs/*/Diagnostics/simctl_diagnostics/DiagnosticReports/*
105152
153+ allure_testops_launch :
154+ name : Launch Allure TestOps
155+ runs-on : macos-13
156+ if : ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
157+ needs : test-ui-debug
158+ outputs :
159+ launch_id : ${{ steps.get_launch_id.outputs.launch_id }}
160+ steps :
161+ 162+ - uses : ./.github/actions/ruby-cache
163+ - name : Launch Allure TestOps
164+ run : bundle exec fastlane allure_launch
165+ env :
166+ ALLURE_TOKEN : ${{ secrets.ALLURE_TOKEN }}
167+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
168+ GITHUB_EVENT : ${{ toJson(github.event) }}
169+ - id : get_launch_id
170+ run : echo "launch_id=${{env.LAUNCH_ID}}" >> $GITHUB_OUTPUT
171+ if : env.LAUNCH_ID != ''
172+
106173 test-e2e-debug :
107174 name : Test E2E UI (Debug)
108175 runs-on : macos-14
109176 if : ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
110177 needs :
111178 - allure_testops_launch
179+ - test-ui-debug
112180 - build-test-app-and-frameworks
113181 env :
114182 LAUNCH_ID : ${{ needs.allure_testops_launch.outputs.launch_id }}
@@ -164,29 +232,12 @@ jobs:
164232 fastlane/test_output/logs/*/Diagnostics/**/*.txt
165233 fastlane/test_output/logs/*/Diagnostics/simctl_diagnostics/DiagnosticReports/*
166234
167- allure_testops_launch :
168- name : Launch Allure TestOps
169- runs-on : macos-13
170- if : ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
171- outputs :
172- launch_id : ${{ steps.get_launch_id.outputs.launch_id }}
173- steps :
174- 175- - uses : ./.github/actions/ruby-cache
176- - name : Launch Allure TestOps
177- run : bundle exec fastlane allure_launch
178- env :
179- ALLURE_TOKEN : ${{ secrets.ALLURE_TOKEN }}
180- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
181- GITHUB_EVENT : ${{ toJson(github.event) }}
182- - id : get_launch_id
183- run : echo "launch_id=${{env.LAUNCH_ID}}" >> $GITHUB_OUTPUT
184- if : env.LAUNCH_ID != ''
185-
186235 build-apps :
187236 name : Build Demo App
188237 runs-on : macos-14
189- needs : build-test-app-and-frameworks
238+ needs :
239+ - build-test-app-and-frameworks
240+ - test-ui-debug
190241 if : ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
191242 steps :
192243@@ -198,49 +249,3 @@ jobs:
198249 - uses : ./.github/actions/xcode-cache
199250 - name : Build Demo App
200251 run : bundle exec fastlane build_demo
201-
202- build-xcode15 :
203- name : Build SDKs (Xcode 15.0)
204- runs-on : macos-13
205- if : ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
206- env :
207- XCODE_VERSION : " 15.0.1"
208- steps :
209- 210- - uses : ./.github/actions/ruby-cache
211- - name : List Xcode versions
212- run : mdfind "kMDItemCFBundleIdentifier = 'com.apple.dt.Xcode'"
213- timeout-minutes : 25
214- - name : Build SwiftUI
215- run : bundle exec fastlane test_ui device:"iPhone 15" build_for_testing:true
216- timeout-minutes : 25
217- - name : Install Bot SSH Key
218- uses :
webfactory/[email protected] 219- with :
220- ssh-private-key : ${{ secrets.BOT_SSH_PRIVATE_KEY }}
221- - name : Build XCFrameworks
222- run : bundle exec fastlane build_xcframeworks
223- timeout-minutes : 25
224- env :
225- MATCH_PASSWORD : ${{ secrets.MATCH_PASSWORD }}
226- APPSTORE_API_KEY : ${{ secrets.APPSTORE_API_KEY }}
227-
228- automated-code-review :
229- name : Automated Code Review
230- runs-on : macos-13
231- env :
232- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
233- GITHUB_PR_NUM : ${{ github.event.number }}
234- XCODE_VERSION : " 15.0.1"
235- if : ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
236- steps :
237- 238- - uses : ./.github/actions/bootstrap
239- - name : Run Danger
240- run : bundle exec danger
241- - name : Run Fastlane Linting
242- run : bundle exec fastlane rubocop
243- - name : Run SwiftFormat Linting
244- run : ./Scripts/run-linter.sh
245- - name : Run Podspec Linting
246- run : bundle exec fastlane pod_lint
0 commit comments