Skip to content

Commit

Permalink
Update coverage-report.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hartra344 committed Jun 5, 2024
1 parent 2925b87 commit c3d199f
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/coverage-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,24 @@ jobs:
dotnet tool install -g dotnet-reportgenerator-globaltool
reportgenerator -reports:"libs/*/coverage/cobertura-coverage.xml" -targetdir:CodeCoverage -reporttypes:'Cobertura;MarkdownSummaryGithub'
# - name: Generate Coverage Report
# uses: clearlyip/code-coverage-report-action@v4
# id: code_coverage_report_action
# with:
# #Location of the generate coverage file
# filename: 'CodeCoverage/Cobertura.xml'
# github_token: ${{ secrets.GITHUB_TOKEN }}
# badge: true
# fail_on_negative_difference: true
# artifact_download_workflow_names: 'base-coverage'
- name: Generate Coverage Report
uses: clearlyip/code-coverage-report-action@v4
id: code_coverage_report_action
with:
#Location of the generate coverage file
filename: 'CodeCoverage/Cobertura.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
badge: true
fail_on_negative_difference: true
artifact_download_workflow_names: 'base-coverage'

- name: Write to Job Summary
run: cat CodeCoverage/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
- run: node ./filterCoverageMarkdown.js
- name: Add Coverage PR Comment
#Make sure the report was generated and that the event is actually a pull request, run if failed or success
uses: marocchino/sticky-pull-request-comment@v2
if: steps.code_coverage_report_action.outputs.file != '' && github.event_name == 'pull_request' && (success() || failure())
with:
recreate: true
path: code-coverage-results.md
# - name: Add Coverage PR Comment
# #Make sure the report was generated and that the event is actually a pull request, run if failed or success
# uses: marocchino/sticky-pull-request-comment@v2
# if: steps.code_coverage_report_action.outputs.file != '' && github.event_name == 'pull_request' && (success() || failure())
# with:
# recreate: true
# path: code-coverage-results.md

0 comments on commit c3d199f

Please sign in to comment.