[workflow] make test coverage report collapsable (#2436)

This commit is contained in:
Frank Lee
2023-01-11 13:37:48 +08:00
committed by GitHub
parent 7829aa094e
commit 1b7587d958

View File

@@ -47,6 +47,12 @@ jobs:
output: both
thresholds: '80 90'
- name: Make Coverage Report Collapsable
run: |
sed -i '2 i <details>' code-coverage-results.md
sed -i '3 i <summary>Click me to view the complete report</summary>' code-coverage-results.md
echo "</details>" >> code-coverage-results.md
- name: 'Comment on PR'
uses: actions/github-script@v6
with: