Skip to content

SimpleCov Check

Actions
Ensure code coverage is at 100%
1.0
Latest
Star (1)

SimpleCov Check

A simple action that can pass/fail your build in an isolated job based on the results of a SimpleCov report.

Usage

jobs:
  # Your test job should include something like the following
  test:
    runs-on: ubuntu-latest

    - name: Run specs
      run: bundle exec rspec

    - name: Upload coverage results
      uses: actions/upload-artifact@v2
      with:
        name: coverage-report
        path: coverage

  coverage:
    runs-on: ubuntu-latest

    # This line will only run the coverage job if the test job passed
    needs: test

    steps:
    - name: Download coverage report
      uses: actions/download-artifact@v2
      with:
        name: coverage-report
        path: coverage

    - name: Check coverage
      uses: vigetlabs/[email protected]
      with:
        minimum_coverage: 100
        coverage_path: coverage/.last_run.json

SimpleCov Check 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

Ensure code coverage is at 100%
1.0
Latest

SimpleCov Check 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.