It's now recommended to use octocov instead of this approach.
A GitHub Action that report simplecov coverage.
token
- The GITHUB_TOKEN secret.failedThreshold
- Failed threshold. (default:90
)resultPath
- Path to last_run json file. (default:coverage/.last_run.json
)
name: Tests
on:
pull_request:
jobs:
build:
steps:
- name: Test
run: bundle exec rspec
- name: Simplecov Report
uses: aki77/simplecov-report-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}