Skip to content

Commit 994e04c

Browse files
committed
Make use of GITHUB_STEP_SUMMARY
1 parent 93130ce commit 994e04c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,18 @@ jobs:
6767
- name: Install problem matcher for VTest.
6868
run: echo "::add-matcher::.github/vtest.json"
6969
- name: Run tests using HAProxy ${{ steps.install-haproxy.outputs.version }}.
70-
run: vtest -Dhaproxy_version=${{ steps.install-haproxy.outputs.version }} -k -t 10 test/*.vtc
70+
run: |
71+
vtest -Dhaproxy_version=${{ steps.install-haproxy.outputs.version }} -k -t 10 test/*.vtc 2>&1 \
72+
|tee >(
73+
awk '
74+
$5=="passed"{icon=":heavy_check_mark:"}
75+
$5=="skipped"{icon=":grey_question:"}
76+
$5=="FAILED"{icon=":x:"}
77+
$1 == "#" && $3=="TEST"{
78+
print "- " icon " " $4
79+
}
80+
{line=$0}
81+
END{print "# " $0}
82+
' \
83+
|tac >> $GITHUB_STEP_SUMMARY
84+
)

0 commit comments

Comments
 (0)