A GitHub Action that report SimpleCov coverage.
The action works only with pull_request event.
token- The GITHUB_TOKEN secret.failedThreshold- Failed threshold. (default:90)headRefCoveragePath- Path to last_run json file. (default:coverage/coverage.json)baseRefCoveragePath- Path to baseRef json file. (default:baseref_coverage/coverage.json)head_branch- Compare head branch coverage results
name: Tests
on:
pull_request:
jobs:
build:
steps:
- name: Test
run: bundle exec rspec
- name: SimpleCov Report
uses: pinnacles/simplecov-report-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
event_name: pull_request
head_branch: main