Trying out reviewdog #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# modified from: | |
# https://github.com/reviewdog/action-rubocop#example-usage | |
# https://github.com/tk0miya/action-erblint#example-usage | |
name: reviewdog | |
on: [pull_request] | |
jobs: | |
rubocop: | |
name: runner / rubocop | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: rubocop | |
uses: reviewdog/action-rubocop@v2 | |
with: | |
rubocop_version: gemfile | |
rubocop_extensions: rubocop-rails:gemfile rubocop-rspec:gemfile | |
reporter: github-pr-review # Default is github-pr-check | |
erb-lint: | |
name: runner / erb-lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: erb-lint | |
uses: tk0miya/action-erblint@v1 | |
with: | |
reporter: github-pr-review # This is the default | |
use_bundler: true |