From 3d126651737e43abc8914e0ac9f63106e38dc7ed Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Fri, 3 Mar 2023 13:53:29 -0500 Subject: [PATCH] Sync Rubocop CI with OJ --- .github/workflows/rubocop.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 671f7676..8eb2c070 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -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: @@ -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