Skip to content

Commit

Permalink
Enable RuboCop in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Feb 17, 2023
1 parent aea89cf commit 39fd492
Show file tree
Hide file tree
Showing 5 changed files with 1,079 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- ruby: truffleruby+graalvm
- ruby: jruby
- ruby: "2.5"
rake_task: "rubocop test"
- ruby: "2.6"
- ruby: "2.7"
- ruby: "3.0"
Expand All @@ -32,6 +33,6 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
run: bundle exec rake ${{ matrix.rake_task }}
- name: Build gem
run: gem build *.gemspec
10 changes: 10 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
inherit_from: .rubocop_todo.yml

require:
- rubocop-rake
- rubocop-rspec
- rubocop-performance
AllCops:
TargetRubyVersion: 2.5
NewCops: enable
Loading

0 comments on commit 39fd492

Please sign in to comment.