Skip to content

Commit 9c5ad2a

Browse files
committed
chore: print exactly which suite failed in actions
1 parent 0826947 commit 9c5ad2a

File tree

5 files changed

+80
-0
lines changed

5 files changed

+80
-0
lines changed

.github/workflows/desktop-linux-prod-test-pull.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,20 @@ jobs:
9595
if: steps.linuxRunUnit.outcome == 'failure' || steps.linuxRunIntegration.outcome == 'failure' || steps.linuxRunMainview.outcome == 'failure' || steps.linuxRunLivepreview.outcome == 'failure' || steps.linuxRunLegacyInteg.outcome == 'failure'
9696
run: |
9797
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
98114
exit 1

.github/workflows/desktop-linux-test-pull.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,20 @@ jobs:
9494
if: steps.linuxRunUnit.outcome == 'failure' || steps.linuxRunIntegration.outcome == 'failure' || steps.linuxRunMainview.outcome == 'failure' || steps.linuxRunLivepreview.outcome == 'failure' || steps.linuxRunLegacyInteg.outcome == 'failure'
9595
run: |
9696
echo "Linux tests failed, marking step as failed"
97+
echo "Failed tests:"
98+
if [ "${{ steps.linuxRunUnit.outcome }}" == "failure" ]; then
99+
echo "- Run tauri unit tests"
100+
fi
101+
if [ "${{ steps.linuxRunIntegration.outcome }}" == "failure" ]; then
102+
echo "- Run tauri integration tests"
103+
fi
104+
if [ "${{ steps.linuxRunMainview.outcome }}" == "failure" ]; then
105+
echo "- Run tauri mainview tests"
106+
fi
107+
if [ "${{ steps.linuxRunLivepreview.outcome }}" == "failure" ]; then
108+
echo "- Run tauri livepreview tests"
109+
fi
110+
if [ "${{ steps.linuxRunLegacyInteg.outcome }}" == "failure" ]; then
111+
echo "- Run tauri LegacyInteg tests"
112+
fi
97113
exit 1

.github/workflows/desktop-mac-m1-test-pull.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,20 @@ jobs:
8787
if: steps.macM1RunUnit.outcome == 'failure' || steps.macM1RunIntegration.outcome == 'failure' || steps.macM1RunMainview.outcome == 'failure' || steps.macM1RunLivepreview.outcome == 'failure' || steps.macM1RunLegacyInteg.outcome == 'failure'
8888
run: |
8989
echo "Mac M1 tests failed, marking step as failed"
90+
echo "Failed tests:"
91+
if [ "${{ steps.macM1RunUnit.outcome }}" == "failure" ]; then
92+
echo "- Run tauri unit tests"
93+
fi
94+
if [ "${{ steps.macM1RunIntegration.outcome }}" == "failure" ]; then
95+
echo "- Run tauri integration tests"
96+
fi
97+
if [ "${{ steps.macM1RunMainview.outcome }}" == "failure" ]; then
98+
echo "- Run tauri mainview tests"
99+
fi
100+
if [ "${{ steps.macM1RunLivepreview.outcome }}" == "failure" ]; then
101+
echo "- Run tauri livepreview tests"
102+
fi
103+
if [ "${{ steps.macM1RunLegacyInteg.outcome }}" == "failure" ]; then
104+
echo "- Run tauri LegacyInteg tests"
105+
fi
90106
exit 1

.github/workflows/desktop-mac-test-pull.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,20 @@ jobs:
8787
if: steps.macRunUnit.outcome == 'failure' || steps.macRunIntegration.outcome == 'failure' || steps.macRunMainview.outcome == 'failure' || steps.macRunLivepreview.outcome == 'failure' || steps.macRunLegacyInteg.outcome == 'failure'
8888
run: |
8989
echo "Mac tests failed, marking step as failed"
90+
echo "Failed tests:"
91+
if [ "${{ steps.macRunUnit.outcome }}" == "failure" ]; then
92+
echo "- Run tauri unit tests"
93+
fi
94+
if [ "${{ steps.macRunIntegration.outcome }}" == "failure" ]; then
95+
echo "- Run tauri integration tests"
96+
fi
97+
if [ "${{ steps.macRunMainview.outcome }}" == "failure" ]; then
98+
echo "- Run tauri mainview tests"
99+
fi
100+
if [ "${{ steps.macRunLivepreview.outcome }}" == "failure" ]; then
101+
echo "- Run tauri livepreview tests"
102+
fi
103+
if [ "${{ steps.macRunLegacyInteg.outcome }}" == "failure" ]; then
104+
echo "- Run tauri LegacyInteg tests"
105+
fi
90106
exit 1

.github/workflows/desktop-windows-test-pull.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,21 @@ jobs:
113113
if: steps.windowsRunUnit.outcome == 'failure' || steps.windowsRunIntegration.outcome == 'failure' || steps.windowsRunMainview.outcome == 'failure' || steps.windowsRunLivepreview.outcome == 'failure' || steps.windowsRunLegacyInteg.outcome == 'failure'
114114
run: |
115115
echo "Windows tests failed, marking step as failed"
116+
echo "Failed tests:"
117+
if "${{ steps.windowsRunUnit.outcome }}" == "failure" (
118+
echo "- Run tauri unit tests"
119+
)
120+
if "${{ steps.windowsRunIntegration.outcome }}" == "failure" (
121+
echo "- Run tauri integration tests"
122+
)
123+
if "${{ steps.windowsRunMainview.outcome }}" == "failure" (
124+
echo "- Run tauri mainview tests"
125+
)
126+
if "${{ steps.windowsRunLivepreview.outcome }}" == "failure" (
127+
echo "- Run tauri livepreview tests"
128+
)
129+
if "${{ steps.windowsRunLegacyInteg.outcome }}" == "failure" (
130+
echo "- Run tauri LegacyInteg tests"
131+
)
116132
exit 1
117133
shell: cmd

0 commit comments

Comments
 (0)