-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AO3-6590 Add reviewdog for linting ERB files (#4604)
* AO3-6590 Add reviewdog ERB lint runner * AO3-6590 Remove erb lint from Hound It doesn't work. And if that would be fixed in the future, it would be linting twice. * AO3-6590 Rename reviewdog workflow to be more generic
- Loading branch information
Showing
2 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Based on https://github.com/tk0miya/action-erblint/blob/main/README.md#example-usage | ||
|
||
name: Reviewdog | ||
|
||
on: [pull_request] | ||
|
||
permissions: | ||
checks: write | ||
|
||
jobs: | ||
erb-lint: | ||
name: ERB Lint runner | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Ruby and run bundle install | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
|
||
- name: erb-lint | ||
uses: tk0miya/action-erblint@667687e73b44e7b7a710a1204b180f49f80ebb5e | ||
with: | ||
use_bundler: true | ||
reporter: github-pr-check # default |
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