Skip to content

a github action that use lcov.info file verify if the test coverage has reached a minimum threshold

License

Notifications You must be signed in to change notification settings

terencetcf/github-actions-lcov-minimum-coverage-checker

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

GitHub Action — LCOV Minimum Test Coverage Checker

A github action that use lcov.info file verify if the test coverage is below the minimum test coverage threshold.

Usage

Inputs

For more information on these inputs, see the Workflow syntax for GitHub Actions.

  • coverage-file: File path of the test coverage file. e.g.: coverage/lcov.info
  • minimum-coverage: The minimum test coverage threshold. Optional. Default: 0

Common workflow

on: pull_request

name: Continuous Integration

jobs:
  unit_test:
    name: Test
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Check test coverage
        uses: terencetcf/github-actions-lcov-minimum-coverage-checker@v1
        with:
          coverage-file: coverage/lcov.info
          minimum-coverage: 90

About

a github action that use lcov.info file verify if the test coverage has reached a minimum threshold

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published