Skip to content

Commit 51b1b69

Browse files
committed
ci: add coverage report
Signed-off-by: black-desk <me@black-desk.cn>
1 parent f7844fa commit 51b1b69

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,11 @@ jobs:
2323
run: |
2424
make
2525
make test
26+
27+
- name: Coverage report
28+
run: |
29+
export COVERAGE_REPORT=/tmp/io.github.black-desk.cgtproxy-test/coverage.txt &&
30+
echo '```' > $GITHUB_STEP_SUMMARY &&
31+
make COVERAGE_REPORT=$COVERAGE_REPORT test-coverage &&
32+
cat $COVERAGE_REPORT >> $GITHUB_STEP_SUMMARY &&
33+
echo '```' >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)