Skip to content

Commit

Permalink
Add rubocop to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ssnickolay committed Oct 31, 2021
1 parent 42573fc commit 592a10b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint Ruby

on:
push:
branches:
- master
pull_request:

jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Lint Ruby code with RuboCop
run: |
bundle install --jobs 4 --retry 3
bundle exec rubocop
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ AllCops:
- 'gemfiles/vendor/**/*'
- 'clowne.gemspec'
DisplayCopNames: true
TargetRubyVersion: 2.5
TargetRubyVersion: 2.7

Markdown:
WarnInvalid: true
Expand Down

0 comments on commit 592a10b

Please sign in to comment.