File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -79,11 +79,15 @@ jobs:
79
79
- name : Check Test Summary
80
80
run : |
81
81
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
84
86
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
87
91
else
88
92
echo "CI Success: No failed tests."
89
93
fi
You can’t perform that action at this time.
0 commit comments