GitHub Action to setup Problem Matchers for RuboCop.
Add this action as a step before running rubocop
step:
name: test
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 2.7.2
- uses: r7kamura/rubocop-problem-matchers-action@v1
- run: bundle exec rubocop --parallel
rubocop --color
is not supported.ref
on actions/checkout to annotate with actual line numbers.