A GitHub Action that report RSpec failure.
Reported in issue comment.
Reported in check runs.
token
- The GITHUB_TOKEN secret.json-path
- Path to RSpec result json file.
name: Build
on:
pull_request:
jobs:
rspec:
steps:
- name: Test
run: bundle exec rspec -f j -o tmp/rspec_results.json -f p
- name: RSpec Report
uses: SonicGarden/rspec-report-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
json-path: tmp/rspec_results.json
if: always()