Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

webcraftmedia/coverage-check-action

 
 

Repository files navigation

Coverage check

A GitHub Action that check minimum coverage percentage!

This action requires a Github token with checks:write scope to allow create the check run using the Github API v3. But no need to generate any new token, you can use the Github action token (${{ github.token }})

Usage

Lcov

- uses: devmasx/coverage-check-action@v1.2.0
  with:
    type: lcov
    result_path: coverage/example.lcov
    min_coverage: 90
    token: ${{ github.token }}
- uses: devmasx/coverage-check-action@v1.2.0
  with:
    type: simplecov
    result_path: coverage/.last_run.json
    min_coverage: 90
    token: ${{ github.token }}

Report name

- uses: devmasx/coverage-check-action@v1.2.0
  with:
    type: lcov
    result_path: coverage/example.lcov
    min_coverage: 90
    token: ${{ github.token }}
    report_name: "My Github Action Check Name"

Screenshots

Success Fail

About

Create a check for coverage percentage.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 71.5%
  • JavaScript 27.3%
  • Dockerfile 1.2%