Skip to content

Commit b8dd202

Browse files
committed
chore: Add RuboCop GitHub Action
1 parent a105af6 commit b8dd202

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/rubucop.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: RuboCop linting
2+
3+
on:
4+
push:
5+
paths:
6+
- "Gemfile"
7+
- ".rubocop.yml"
8+
- ".github/workflows/rubucop.yml"
9+
- "**/*.rb"
10+
pull_request:
11+
paths:
12+
- "Gemfile"
13+
- ".rubocop.yml"
14+
- ".github/workflows/rubucop.yml"
15+
- "**/*.rb"
16+
17+
jobs:
18+
build:
19+
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up Ruby 2.6
25+
uses: actions/setup-ruby@v1
26+
with:
27+
ruby-version: 2.6.x
28+
- name: Rubocop
29+
run: |
30+
gem install bundler
31+
bundle install --jobs 4 --retry 3
32+
bundle exec rubocop -D -S

0 commit comments

Comments
 (0)