Skip to content

Commit cb3cd9b

Browse files
committed
ci: Fail the whole nightly job at the end if the testing step has failed [skip tests].
1 parent ac99f06 commit cb3cd9b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/test-podman-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,10 @@ jobs:
178178
179179
echo "Sending notification to Power Automate..."
180180
curl -X POST -H "Content-Type: application/json" -d "$JSON_PAYLOAD" "${{ secrets.PYFLUENT_WEBHOOK_URL }}"
181+
182+
183+
- name: Check test run status and fail the whole job if tests failed
184+
if: steps.fluent_test.outcome != 'success'
185+
run: |
186+
echo "One or more tests failed. Failing the job."
187+
exit 1

.github/workflows/test-run-dev-version-nightly.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,10 @@ jobs:
170170
171171
echo "Sending notification to Power Automate..."
172172
curl -X POST -H "Content-Type: application/json" -d "$JSON_PAYLOAD" "${{ secrets.PYFLUENT_WEBHOOK_URL }}"
173+
174+
- name: Check test run status and fail the whole job if tests failed
175+
if: steps.unittest.outcome != 'success'
176+
run: |
177+
echo "One or more tests failed. Failing the job."
178+
exit 1
179+

0 commit comments

Comments
 (0)