@@ -56,39 +56,71 @@ jobs:
5656
5757 - name : Run tauri unit tests
5858 uses : nick-fields/retry@v3
59+ id : linuxRunUnit
60+ continue-on-error : true
5961 with :
6062 timeout_minutes : 12
6163 max_attempts : 3
6264 command : xvfb-run ./src-tauri/target/debug/phoenix-test --run-tests=unit -q
6365
6466 - name : Run tauri integration tests
6567 uses : nick-fields/retry@v3
68+ id : linuxRunIntegration
69+ continue-on-error : true
6670 with :
6771 timeout_minutes : 12
6872 max_attempts : 3
6973 command : xvfb-run ./src-tauri/target/debug/phoenix-test --run-tests=integration -q
7074
7175 - name : Run tauri mainview tests
7276 uses : nick-fields/retry@v3
77+ id : linuxRunMainview
78+ continue-on-error : true
7379 with :
7480 timeout_minutes : 12
7581 max_attempts : 3
7682 command : xvfb-run ./src-tauri/target/debug/phoenix-test --run-tests=mainview -q
7783
7884 - name : Run tauri livepreview tests
7985 uses : nick-fields/retry@v3
86+ id : linuxRunLivepreview
87+ continue-on-error : true
8088 with :
8189 timeout_minutes : 12
8290 max_attempts : 3
8391 command : xvfb-run ./src-tauri/target/debug/phoenix-test --run-tests=livepreview -q
8492
8593 - name : Run tauri LegacyInteg tests
8694 uses : nick-fields/retry@v3
95+ id : linuxRunLegacyInteg
96+ continue-on-error : true
8797 with :
8898 timeout_minutes : 20
8999 max_attempts : 3
90100 command : xvfb-run ./src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q
91101
102+ - name : Fail on test runs failed in Linux (prod)
103+ if : steps.linuxRunUnit.outcome == 'failure' || steps.linuxRunIntegration.outcome == 'failure' || steps.linuxRunMainview.outcome == 'failure' || steps.linuxRunLivepreview.outcome == 'failure' || steps.linuxRunLegacyInteg.outcome == 'failure'
104+ run : |
105+ echo "Linux (prod) tests failed, marking step as failed"
106+ echo "Failed tests:"
107+ if [ "${{ steps.linuxRunUnit.outcome }}" == "failure" ]; then
108+ echo "- Run tauri unit tests"
109+ fi
110+ if [ "${{ steps.linuxRunIntegration.outcome }}" == "failure" ]; then
111+ echo "- Run tauri integration tests"
112+ fi
113+ if [ "${{ steps.linuxRunMainview.outcome }}" == "failure" ]; then
114+ echo "- Run tauri mainview tests"
115+ fi
116+ if [ "${{ steps.linuxRunLivepreview.outcome }}" == "failure" ]; then
117+ echo "- Run tauri livepreview tests"
118+ fi
119+ if [ "${{ steps.linuxRunLegacyInteg.outcome }}" == "failure" ]; then
120+ echo "- Run tauri LegacyInteg tests"
121+ fi
122+ exit 1
123+
92124 testDesktopMac :
93125 runs-on : macos-15
94126 timeout-minutes : 90
@@ -132,39 +164,71 @@ jobs:
132164
133165 - name : Run tauri unit tests
134166 uses : nick-fields/retry@v3
167+ id : macRunUnit
168+ continue-on-error : true
135169 with :
136170 timeout_minutes : 12
137171 max_attempts : 3
138172 command : ./src-tauri/target/debug/phoenix-test --run-tests=unit -q
139173
140174 - name : Run tauri integration tests
141175 uses : nick-fields/retry@v3
176+ id : macRunIntegration
177+ continue-on-error : true
142178 with :
143179 timeout_minutes : 12
144180 max_attempts : 3
145181 command : ./src-tauri/target/debug/phoenix-test --run-tests=integration -q
146182
147183 - name : Run tauri mainview tests
148184 uses : nick-fields/retry@v3
185+ id : macRunMainview
186+ continue-on-error : true
149187 with :
150188 timeout_minutes : 12
151189 max_attempts : 3
152190 command : ./src-tauri/target/debug/phoenix-test --run-tests=mainview -q
153191
154192 - name : Run tauri livepreview tests
155193 uses : nick-fields/retry@v3
194+ id : macRunLivepreview
195+ continue-on-error : true
156196 with :
157197 timeout_minutes : 12
158198 max_attempts : 3
159199 command : ./src-tauri/target/debug/phoenix-test --run-tests=livepreview -q
160200
161201 - name : Run tauri LegacyInteg tests
162202 uses : nick-fields/retry@v3
203+ id : macRunLegacyInteg
204+ continue-on-error : true
163205 with :
164206 timeout_minutes : 30
165207 max_attempts : 3
166208 command : ./src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q
167209
210+ - name : Fail on test runs failed in Mac (prod)
211+ if : steps.macRunUnit.outcome == 'failure' || steps.macRunIntegration.outcome == 'failure' || steps.macRunMainview.outcome == 'failure' || steps.macRunLivepreview.outcome == 'failure' || steps.macRunLegacyInteg.outcome == 'failure'
212+ run : |
213+ echo "Mac (prod) tests failed, marking step as failed"
214+ echo "Failed tests:"
215+ if [ "${{ steps.macRunUnit.outcome }}" == "failure" ]; then
216+ echo "- Run tauri unit tests"
217+ fi
218+ if [ "${{ steps.macRunIntegration.outcome }}" == "failure" ]; then
219+ echo "- Run tauri integration tests"
220+ fi
221+ if [ "${{ steps.macRunMainview.outcome }}" == "failure" ]; then
222+ echo "- Run tauri mainview tests"
223+ fi
224+ if [ "${{ steps.macRunLivepreview.outcome }}" == "failure" ]; then
225+ echo "- Run tauri livepreview tests"
226+ fi
227+ if [ "${{ steps.macRunLegacyInteg.outcome }}" == "failure" ]; then
228+ echo "- Run tauri LegacyInteg tests"
229+ fi
230+ exit 1
231+
168232 testDesktopWindows :
169233 runs-on : windows-latest
170234 timeout-minutes : 90
0 commit comments