-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (54 loc) · 1.55 KB
/
linters.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Linters
env:
RUBY_VERSION: 2.7.0
on:
pull_request:
push:
branches:
- main
jobs:
rubocop:
name: Run Rubocop
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Check out code
uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
- name: ReviewDog Report
uses: reviewdog/action-rubocop@v1
with:
rubocop_version: gemfile
rubocop_extensions: rubocop-performance:gemfile rubocop-rails:gemfile rubocop-rspec:gemfile
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
rubocop_flags: "-c .rubocop.yml"
brakeman:
name: Run Brakeman
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Run Brakeman
uses: reviewdog/action-brakeman@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
reek:
name: Run Reek
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Check out code
uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
- name: Run Reek
uses: reviewdog/action-reek@v1
with:
reek_version: gemfile
reporter: github-pr-review