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

pull/2446/head
Frank Lee 2023-01-11 13:37:48 +08:00 committed by GitHub
parent 7829aa094e
commit 1b7587d958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

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: