docbrown/.github/workflows/rubocop.yml
Michael Kohl a8813572c6
Request for Comments: Add Rubocop action (#16295)
* Add Rubocop action

* Update step name
2022-01-25 23:27:46 +07:00

18 lines
524 B
YAML

name: Rubocop
on: [pull_request]
jobs:
rubocop:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.2
- name: rubocop
uses: reviewdog/action-rubocop@v2
with:
rubocop_version: gemfile
rubocop_extensions: rubocop-performance:gemfile rubocop-rails:gemfile rubocop-rspec:gemfile
reporter: github-pr-review # Default is github-pr-check