Skip to content

Commit 886d6d9

Browse files
committed
unit tests fail if initialize fails
1 parent cf554ca commit 886d6d9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/unittest.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ jobs:
8686
steps:
8787
- name: Check unit test results
8888
run: |
89+
# 1. Check initialize job
90+
if [[ "${{ needs.initialize.result }}" != "success" ]]; then
91+
echo "Error: The initialize job status was: ${{ needs.initialize.result }}"
92+
exit 1
93+
fi
94+
# 2. Check unit test shards
8995
if [[ "${{ needs.unit.result }}" != "success" && "${{ needs.unit.result }}" != "skipped" ]]; then
9096
echo "Unit tests failed"
9197
exit 1

0 commit comments

Comments
 (0)