This action runs erb-lint with reviewdog on pull requests to improve code review experience.
GITHUB_TOKEN
. Default is ${{ github.token }}
.
Optional. Report level for reviewdog [info
, warning
, error
].
The default is error
.
Optional. Exit code 1 for reviewdog if it finds errors [true
, false
].
The default is false
.
Optional. Reporter of reviewdog command [github-pr-check
, github-check
, github-pr-review
].
The default is github-pr-review
.
Optional. Filtering mode for the reviewdog command [added
, diff_context
, file
, nofilter
].
Default is added
.
Optional. Do not install Rubocop or its extensions. Default: false
.
Optional. Run Rubocop with bundle exec. Default: false
.
name: reviewdog
on: [pull_request]
jobs:
erb-lint:
name: runner / erb-lint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.0
- name: erb-lint
uses: reviewdog/action-erblint@v1