Tried to do it here (#240) but the data didn't look correct, and was too verbose. Ideally just a single % number would do.
This was the YML for that previous attempt:
- name: Code Coverage Summary Report
uses: irongut/[email protected]
if: always()
with:
filename: src/DivingCalculator.Web/test-results/playwright/code-coverage/cobertura/code-coverage.cobertura.xml
badge: true
format: 'markdown'
output: 'both'
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
with:
recreate: true
header: UI Tests Code Coverage
path: code-coverage-results.md
