Skip to content

Commit 232403b

Browse files
committed
pretty print
1 parent 8098a33 commit 232403b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/unit-testing.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
git status
5757
git pull
5858
source .venv/bin/activate
59-
git checkout unit-testing
59+
git checkout ${{ github.ref }}
6060
cat summary_2.yml
6161
# contentctl test --post-test-behavior never_pause mode:changes --mode.target-branch develop
6262
@@ -71,17 +71,18 @@ jobs:
7171

7272
- name: Install dependencies
7373
run: sudo apt-get install -y jq
74+
7475
- name: Print results
7576
run: |
7677
yq e '.summary' summary_2.yml -o=json | jq -r 'to_entries | .[] | "### \(.key)\n\(.value)\n"'
7778
7879
- name: Check Test Summary
7980
run: |
8081
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)
8283
if [ "$total_fail" != "0" ]; then
8384
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
8586
exit 1
8687
else
8788
echo "CI Success: No failed tests."

0 commit comments

Comments
 (0)