Skip to content

Commit 73e5431

Browse files
committed
udpating formatting
1 parent e36622a commit 73e5431

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/unit-testing.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,15 @@ jobs:
7979
- name: Check Test Summary
8080
run: |
8181
git status
82-
total_fail=$(yq e '.summary.total_fail' summary_2.yml)
83-
if [ "$total_fail" != "0" ]; then
82+
total_fail=$(yq e '.summary.total_fail' summary.yml)
83+
84+
# Check if total_fail is greater than one
85+
if [ "$total_fail" -gt 1 ]; then
8486
echo "CI Failure: There are failed tests."
85-
yq e '.summary' summary_2.yml -o=json | jq
86-
exit 1
87+
echo "Name | Status | Test Type"
88+
echo "---- | ------ | ---------"
89+
# Loop through each item in tested_detections and print required fields
90+
yq e '.tested_detections[] | "\(.name) | \(.success) | \(.tests[].test_type)"' summary.yml
8791
else
8892
echo "CI Success: No failed tests."
8993
fi

0 commit comments

Comments
 (0)