/coverage-comment

Coverage reporting action that supports multiple coverage format.

Primary LanguageTypeScriptMIT LicenseMIT

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'