Skip to content

Commit

Permalink
Add check for setup error in yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredb96 committed Jul 1, 2024
1 parent d94cbad commit aae68e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:

- name: Check Test Results
run: |
if [ $(cat log-file | grep -E "TEST FAILED|TESTS FAILED|Failed tests" | wc -l) -gt 0 ]; then
echo "Unit tests failed."
if [ $(cat log-file | grep -E "TEST FAILED|TESTS FAILED|Failed tests|Process completed with exit code 1" | wc -l) -gt 0 ]; then
echo "Unit tests failed or error occurred during setup."
exit 1
else
echo "Unit tests passed."
Expand Down

0 comments on commit aae68e0

Please sign in to comment.