@@ -2,16 +2,11 @@ name: Smoke Checks
22
33on :
44 pull_request :
5- branches :
6- - ' **'
5+ paths-ignore :
6+ - ' README.md'
7+ - ' CHANGELOG.md'
78
89 workflow_dispatch :
9- inputs :
10- snapshots :
11- description : ' Should Snapshots be recorded on CI?'
12- type : boolean
13- required : false
14- default : false
1510
1611concurrency :
1712 group : ${{ github.workflow }}-${{ github.ref }}
2722 build-test-app-and-frameworks :
2823 name : Build Test App and Frameworks
2924 runs-on : macos-15
30- if : ${{ github.event_name != 'push' }}
3125 steps :
32263327 - uses : ./.github/actions/ruby-cache
4943 runs-on : macos-15
5044 env :
5145 XCODE_VERSION : " 15.4"
52- if : ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
5346 steps :
54475548 - uses : ./.github/actions/bootstrap
6659 build-xcode15 :
6760 name : Build SDKs (Xcode 15.0)
6861 runs-on : macos-15
69- if : ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
7062 env :
7163 XCODE_VERSION : " 15.4"
7264 steps :
8981 MATCH_PASSWORD : ${{ secrets.MATCH_PASSWORD }}
9082 APPSTORE_API_KEY : ${{ secrets.APPSTORE_API_KEY }}
9183
92- test-ui-debug :
93- name : Test SwiftUI (Debug)
94- runs-on : macos-15
95- needs : build-test-app-and-frameworks
96- steps :
97- 98- - uses : actions/download-artifact@v4
99- with :
100- name : cache-derived-data
101- path : derived_data/Build/
102- - uses : ./.github/actions/bootstrap
103- env :
104- INSTALL_YEETD : true
105- - uses : ./.github/actions/python-cache
106- - name : Run UI Tests (Debug)
107- run : bundle exec fastlane test_ui device:"${{ env.IOS_SIMULATOR_DEVICE }}" skip_build:true record:${{ github.event.inputs.snapshots }}
108- timeout-minutes : 120
109- env :
110- GITHUB_TOKEN : ${{ secrets.CI_BOT_GITHUB_TOKEN }} # to open a PR
111- - name : Run Sonar analysis
112- if : ${{ github.event.inputs.snapshots != 'true' }}
113- run : bundle exec fastlane sonar_upload
114- env :
115- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
116- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
117- - uses : 8398a7/action-slack@v3
118- with :
119- status : ${{ job.status }}
120- text : " You shall not pass!"
121- job_name : " Test (Debug)"
122- fields : message,commit,author,action,workflow,job,took
123- env :
124- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
125- MATRIX_CONTEXT : ${{ toJson(matrix) }}
126- if : ${{ github.event_name == 'push' && failure() }}
127- - name : Parse xcresult
128- if : failure()
129- run : |
130- brew install chargepoint/xcparse/xcparse
131- xcparse logs fastlane/test_output/StreamChatSwiftUI.xcresult fastlane/test_output/logs/
132- xcparse screenshots fastlane/test_output/StreamChatSwiftUI.xcresult fastlane/test_output/snapshots --test
133- - uses : actions/upload-artifact@v4
134- if : failure()
135- with :
136- name : Test Data UI
137- path : |
138- fastlane/recordings
139- fastlane/sinatra_log.txt
140- fastlane/test_output/snapshots
141- fastlane/test_output/logs/*/Diagnostics/**/*.txt
142- fastlane/test_output/logs/*/Diagnostics/simctl_diagnostics/DiagnosticReports/*
143-
14484 allure_testops_launch :
14585 name : Launch Allure TestOps
14686 runs-on : macos-13
147- if : ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
14887 needs : build-test-app-and-frameworks
14988 outputs :
15089 launch_id : ${{ steps.get_launch_id.outputs.launch_id }}
@@ -163,7 +102,6 @@ jobs:
163102 test-e2e-debug :
164103 name : Test E2E UI (Debug)
165104 runs-on : macos-15
166- if : ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
167105 needs :
168106 - allure_testops_launch
169107 - build-test-app-and-frameworks
@@ -184,7 +122,6 @@ jobs:
184122 INSTALL_ALLURE : true
185123 INSTALL_YEETD : true
186124 SKIP_MINT_BOOTSTRAP : true
187- SKIP_BREW_BOOTSTRAP : true
188125 - name : Run UI Tests (Debug)
189126 run : bundle exec fastlane test_e2e_mock device:"${{ env.IOS_SIMULATOR_DEVICE }}" batch:'${{ matrix.batch }}' test_without_building:true
190127 timeout-minutes : 100
@@ -220,7 +157,6 @@ jobs:
220157 name : Build Demo App
221158 runs-on : macos-14
222159 needs : build-test-app-and-frameworks
223- if : ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
224160 steps :
225161226162 - uses : actions/download-artifact@v4
0 commit comments