Skip to content

Commit 588d6d5

Browse files
committed
UTEST: Refine coverage script.
1 parent 755a2a7 commit 588d6d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/test.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ jobs:
129129
SRS_BRANCH=$(echo ${{ github.ref }}| awk -F 'refs/heads/' '{print $2}'| awk -F '/' '{print $1}')
130130
# The github.ref is, for example, refs/pull/2536/merge
131131
SRS_PR=$(echo ${{ github.ref }}| awk -F 'refs/pull/' '{print $2}'| awk -F '/' '{print $1}')
132-
echo "For ref=${{ github.ref }}, sha=${{ github.sha }}, SRS_BRANCH=$SRS_BRANCH, SRS_PR=$SRS_PR, SRS_SHA=$SRS_SHA, SRS_PROJECT=$SRS_PROJECT"
132+
#
133+
echo "For github.ref=${{ github.ref }}, github.sha=${{ github.sha }}"
134+
echo "SRS_BRANCH=$SRS_BRANCH, SRS_PR=$SRS_PR, SRS_SHA=$SRS_SHA, SRS_PROJECT=$SRS_PROJECT"
133135
docker run --rm --env CODECOV_TOKEN=$CODECOV_TOKEN \
134136
--env SRS_BRANCH=$SRS_BRANCH --env SRS_PR=$SRS_PR --env SRS_SHA=$SRS_SHA --env SRS_PROJECT=$SRS_PROJECT \
135137
srs:cov bash -c 'make utest && ./objs/srs_utest && bash auto/codecov.sh'

0 commit comments

Comments
 (0)