Skip to content

Code coverage-reporter

Actions
Comments a pull request with code coverage report
v5.4
Latest
Star (5)

Codacy Badge build-test Public workflows that use this action.

coverage-reporter

Display Coverage reports on a Pull Request.

sample

Usage

coverage.py

...
    steps:
      - uses: actions/checkout@v3
      - name: Code coverage-reporter
        uses: tj-actions/[email protected]
        with:
          coverage-command: 'python -m coverage report'

nyc

...
    steps:
      - uses: actions/checkout@v3
      - name: Code coverage-reporter
        uses: tj-actions/[email protected]
        with:
          coverage-command: "nyc --reporter=text mocha --exclude='fixtures' __tests__/*.js"

Inputs

INPUT TYPE REQUIRED DEFAULT DESCRIPTION
coverage-command string true Specify a coverage command to
run the test.
token string true "${{ github.token }}" GITHUB_TOKEN or a Repo scoped
PAT

If you feel generous and want to show some extra appreciation:

Buy me a coffee

Code coverage-reporter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Comments a pull request with code coverage report
v5.4
Latest

Code coverage-reporter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.