-
Notifications
You must be signed in to change notification settings - Fork 2.5k
39 lines (37 loc) · 1.05 KB
/
rubocop-core.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: rubocop
on:
pull_request:
paths-ignore:
- 'docs/**'
jobs:
rubocop:
name: rubocop
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Run Rubocop
uses: reviewdog/action-rubocop@v2
with:
github_token: ${{ secrets.github_token }}
rubocop_version: gemfile
rubocop_extensions: >
rubocop-capybara:gemfile
rubocop-factory_bot:gemfile
rubocop-openproject:gemfile
rubocop-performance:gemfile
rubocop-rails:gemfile
rubocop-rspec:gemfile
rubocop-rspec_rails:gemfile
reporter: github-pr-check
only_changed: true
- name: Install erb_lint
run: gem install -N erb_lint erblint-github
- name: Run erb-lint
uses: tk0miya/action-erblint@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-check
fail_on_error: true