File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 56
56
git status
57
57
git pull
58
58
source .venv/bin/activate
59
- git checkout unit-testing
59
+ git checkout ${{ github.ref }}
60
60
cat summary_2.yml
61
61
# contentctl test --post-test-behavior never_pause mode:changes --mode.target-branch develop
62
62
@@ -71,17 +71,18 @@ jobs:
71
71
72
72
- name : Install dependencies
73
73
run : sudo apt-get install -y jq
74
+
74
75
- name : Print results
75
76
run : |
76
77
yq e '.summary' summary_2.yml -o=json | jq -r 'to_entries | .[] | "### \(.key)\n\(.value)\n"'
77
78
78
79
- name : Check Test Summary
79
80
run : |
80
81
git status
81
- total_fail=$(cat summary_2.yml | yq e '.summary.total_fail' - )
82
+ total_fail=$(yq e '.summary.total_fail' summary_2.yml )
82
83
if [ "$total_fail" != "0" ]; then
83
84
echo "CI Failure: There are failed tests."
84
- cat summary_2.yml | jq e '.summary' -
85
+ yq e '.summary' summary_2.yml -o=json | jq
85
86
exit 1
86
87
else
87
88
echo "CI Success: No failed tests."
You can’t perform that action at this time.
0 commit comments