Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli Fatsi committed Jul 29, 2021
1 parent 54d4839 commit f38ad27
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SimpleCov Check

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

## Usage
```yml
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
```

0 comments on commit f38ad27

Please sign in to comment.