Skip to content

Coverage reporting action that supports multiple coverage format.

License

Notifications You must be signed in to change notification settings

kuju63/coverage-comment

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

coverage-comment action

build-test

Input

token

Required Set github.token for comment to PR.

paths

Required Coverage file path. It allow glob pattern.

type

Optional Coverage format. Currently supported "cobertura" only.

debug

Optional Dry run mode when set 1.

Output

None

How to use

Simple using

- name: Test coverage
  uses: kuju63/coverage-comment
  with:
    token: ${{ github.token }}
    paths: csharp/test/Sample.Tests/TestResults/**/coverage.cobertura.xml

Full using

- name: Test coverage
  uses: kuju63/coverage-comment
  with:
    token: ${{ github.token }}
    paths: csharp/test/Sample.Tests/TestResults/**/coverage.cobertura.xml
    type: 'cobertura'
    debug: '0'