Skip to content
check-circle

GitHub Action

Coverage commentator

v1.3.2 Latest version

Coverage commentator

check-circle

Coverage commentator

Comment test coverage to PR

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Coverage commentator

uses: kuju63/[email protected]

Learn more about this action in kuju63/coverage-comment

Choose a version

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'