diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 6142a00..4466c89 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -32,12 +32,8 @@ jobs: with: ruby-version: 2.7 - # This step is not necessary if you add the gem to your Gemfile - - name: Install Code Scanning integration - run: bundle add code-scanning-rubocop --skip-install - - name: Install dependencies - run: bundle install + run: bundle install --with=ci - name: Rubocop run run: | diff --git a/Gemfile b/Gemfile index f7200f1..c1f0eb2 100644 --- a/Gemfile +++ b/Gemfile @@ -3,3 +3,7 @@ source 'http://rubygems.org' gemspec + +group :ci do + gem 'code-scanning-rubocop' +end diff --git a/Gemfile.lock b/Gemfile.lock index 23520a5..630522e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,6 +8,8 @@ GEM remote: http://rubygems.org/ specs: ast (2.4.2) + code-scanning-rubocop (0.6.1) + rubocop (~> 1.0) colorize (0.8.1) parallel (1.22.1) parser (3.1.2.0) @@ -36,6 +38,7 @@ PLATFORMS ruby DEPENDENCIES + code-scanning-rubocop format-staged! rake (~> 13.0) rubocop (~> 1.29)