Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 2.59 KB

README.md

File metadata and controls

56 lines (39 loc) · 2.59 KB

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