Skip to content

A GitHub Action for checking test coverage w/ SimpleCov

Notifications You must be signed in to change notification settings

praja/simplecov-check

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A GitHub Action for checking test coverage w/ SimpleCov

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 82.1%
  • Dockerfile 17.9%