Skip to content

Commit

Permalink
[workflow] make test coverage report collapsable (hpcaitech#2436)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankLeeeee authored Jan 11, 2023
1 parent 7829aa0 commit 1b7587d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/report_test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1b7587d

Please sign in to comment.