@@ -48,35 +48,67 @@ jobs:
4848
4949 - name : Run tauri unit tests
5050 uses : nick-fields/retry@v2
51+ id : linuxRunUnit
52+ continue-on-error : true
5153 with :
5254 timeout_minutes : 12
5355 max_attempts : 3
5456 command : xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=unit -q
5557
5658 - name : Run tauri integration tests
5759 uses : nick-fields/retry@v2
60+ id : linuxRunIntegration
61+ continue-on-error : true
5862 with :
5963 timeout_minutes : 12
6064 max_attempts : 3
6165 command : xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=integration -q
6266
6367 - name : Run tauri mainview tests
6468 uses : nick-fields/retry@v2
69+ id : linuxRunMainview
70+ continue-on-error : true
6571 with :
6672 timeout_minutes : 12
6773 max_attempts : 3
6874 command : xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=mainview -q
6975
7076 - name : Run tauri livepreview tests
7177 uses : nick-fields/retry@v2
78+ id : linuxRunLivepreview
79+ continue-on-error : true
7280 with :
7381 timeout_minutes : 12
7482 max_attempts : 3
7583 command : xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=livepreview -q
7684
7785 - name : Run tauri LegacyInteg tests
7886 uses : nick-fields/retry@v2
87+ id : linuxRunLegacyInteg
88+ continue-on-error : true
7989 with :
8090 timeout_minutes : 20
8191 max_attempts : 3
8292 command : xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q
93+
94+ - name : Fail on test runs failed in Linux
95+ if : steps.linuxRunUnit.outcome == 'failure' || steps.linuxRunIntegration.outcome == 'failure' || steps.linuxRunMainview.outcome == 'failure' || steps.linuxRunLivepreview.outcome == 'failure' || steps.linuxRunLegacyInteg.outcome == 'failure'
96+ run : |
97+ echo "Linux tests failed, marking step as failed"
98+ echo "Failed tests:"
99+ if [ "${{ steps.linuxRunUnit.outcome }}" == "failure" ]; then
100+ echo "- Run tauri unit tests"
101+ fi
102+ if [ "${{ steps.linuxRunIntegration.outcome }}" == "failure" ]; then
103+ echo "- Run tauri integration tests"
104+ fi
105+ if [ "${{ steps.linuxRunMainview.outcome }}" == "failure" ]; then
106+ echo "- Run tauri mainview tests"
107+ fi
108+ if [ "${{ steps.linuxRunLivepreview.outcome }}" == "failure" ]; then
109+ echo "- Run tauri livepreview tests"
110+ fi
111+ if [ "${{ steps.linuxRunLegacyInteg.outcome }}" == "failure" ]; then
112+ echo "- Run tauri LegacyInteg tests"
113+ fi
114+ exit 1
0 commit comments