CI: CI-Test-Result should fail depending on unit tests (#33643)
CI-Test-Result should fail depending on unit tests
This commit is contained in:
parent
996db1cc37
commit
cf5b36a630
16
.github/workflows/test-build-docker-image.yml
vendored
16
.github/workflows/test-build-docker-image.yml
vendored
|
|
@ -264,12 +264,24 @@ jobs:
|
|||
|
||||
- name: Return status for ui-matrix
|
||||
run: |
|
||||
if [[ "${{ needs.ci-test.result }}" == "success" ]]; then
|
||||
echo "Integration tests completed successfully!";
|
||||
if [[ "${{ needs.ci-test.result }}" == "success" && "${{ needs.client-unit-tests.result }}" == "success" && "${{ needs.server-unit-tests.result }}" == "success" ]]; then
|
||||
echo "Integration, Client unit and Server unit tests completed successfully!";
|
||||
exit 0;
|
||||
elif [[ "${{ needs.ci-test.result }}" == "skipped" ]]; then
|
||||
echo "Integration tests were skipped";
|
||||
exit 1;
|
||||
elif [[ "${{ needs.client-unit-tests.result }}" == "skipped" ]]; then
|
||||
echo "Client unit tests were skipped";
|
||||
exit 1;
|
||||
elif [[ "${{ needs.server-unit-tests.result }}" == "skipped" ]]; then
|
||||
echo "Server unit tests were skipped";
|
||||
exit 1;
|
||||
elif [[ "${{ needs.client-unit-tests.result }}" == "failure" ]]; then
|
||||
echo "Client unit tests have failed";
|
||||
exit 1;
|
||||
elif [[ "${{ needs.server-unit-tests.result }}" == "failure" ]]; then
|
||||
echo "Server unit tests have failed";
|
||||
exit 1;
|
||||
else
|
||||
echo "Integration tests have failed";
|
||||
exit 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user