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:
yatinappsmith 2024-05-27 15:20:20 +05:30 committed by GitHub
parent 996db1cc37
commit cf5b36a630
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;