Skip to content

Commit

Permalink
file name
Browse files Browse the repository at this point in the history
  • Loading branch information
patel-bhavin committed Jul 2, 2024
1 parent 73e5431 commit 172dcf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unit-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ jobs:
- name: Check Test Summary
run: |
git status
total_fail=$(yq e '.summary.total_fail' summary.yml)
total_fail=$(yq e '.summary.total_fail' summary_2.yml)
# Check if total_fail is greater than one
if [ "$total_fail" -gt 1 ]; then
echo "CI Failure: There are failed tests."
echo "Name | Status | Test Type"
echo "---- | ------ | ---------"
# Loop through each item in tested_detections and print required fields
yq e '.tested_detections[] | "\(.name) | \(.success) | \(.tests[].test_type)"' summary.yml
yq e '.tested_detections[] | "\(.name) | \(.success) | \(.tests[].test_type)"' summary_2.yml
else
echo "CI Success: No failed tests."
fi
Expand Down

0 comments on commit 172dcf7

Please sign in to comment.