Skip to content

Trying out reviewdog #5

Trying out reviewdog

Trying out reviewdog #5

Workflow file for this run

# 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
uses_bundler: true