Skip to content

Commit

Permalink
Sync Rubocop CI with OJ
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Mar 3, 2023
1 parent be0935e commit 3d12665
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ on:
- ".rubocop*.yml"
- ".github/workflows/rubocop.yml"
- "**/*.rb"
- "**/*.gemspec"
- "**/*.gemfile"
- "Gemfile"
pull_request:
paths:
- ".rubocop*.yml"
- ".github/workflows/rubocop.yml"
- "**/*.rb"
- "**/*.gemspec"
- "**/*.gemfile"
- "Gemfile"

jobs:
formatting-check:
Expand All @@ -28,12 +34,10 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"

- name: Install rubocop
run: gem install rubocop --no-doc
bundler-cache: true

- name: Set-up RuboCop Problem Matcher
uses: r7kamura/rubocop-problem-matchers-action@v1

- name: Run rubocop
run: rubocop
run: bundle exec rubocop

0 comments on commit 3d12665

Please sign in to comment.