Skip to content

Commit

Permalink
Publish coverage summary.
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayKMehta committed Feb 7, 2024
1 parent d046865 commit 1732930
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ jobs:
targetdir: '${{ github.workspace }}/coveragereport'
reporttypes: 'MarkdownSummaryGithub'

# https://github.com/danielpalme/ReportGenerator/issues/431
- name: Publish coverage summary
uses: marocchino/sticky-pull-request-comment@v2
if: ${{ github.event_name == 'pull_request' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path: coveragereport/SummaryGithub.md

- name: Upload coverage into summary
run: cat $GITHUB_WORKSPACE/coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY

Expand Down

0 comments on commit 1732930

Please sign in to comment.