From ddbde92236a1281908e0f1419dbe7588343dedda Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 31 Jul 2021 10:24:06 +0100 Subject: [PATCH] Fix CI linting (#273) --- .github/workflows/ci.yml | 7 +++++-- Gemfile | 29 +++++++++++++++++------------ 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eec4bed..35f6b3c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,8 +25,11 @@ jobs: - name: Rubocop run: | - gem install rubocop rubocop-packaging rubocop-performance --no-document - rubocop --format progress + gem install bundler + bundle config set without 'development test' + bundle config set with 'lint' + bundle install + bundle exec rubocop --format progress - name: Yard-Junk run: | diff --git a/Gemfile b/Gemfile index 3f7478e..f813483 100644 --- a/Gemfile +++ b/Gemfile @@ -2,25 +2,30 @@ source 'https://rubygems.org' -gem 'brotli', '>= 0.1.8', platforms: :mri -gem 'hashie', '>= 1.2' -gem 'json', '< 3' -gem 'multi_xml', '>= 0.5.3' -gem 'rack', '< 2' -gem 'rack-cache', '>= 1.1', '< 1.3' -gem 'rake', '>= 12.3.3' -gem 'rash_alt', '>= 0.4.3' -gem 'safe_yaml' -gem 'simple_oauth', '>= 0.1', '< 0.3' +group :development do + gem 'brotli', '>= 0.1.8', platforms: :mri + gem 'hashie', '>= 1.2' + gem 'json', '< 3' + gem 'multi_xml', '>= 0.5.3' + gem 'rack', '< 2' + gem 'rack-cache', '>= 1.1', '< 1.3' + gem 'rake', '>= 12.3.3' + gem 'rash_alt', '>= 0.4.3' + gem 'safe_yaml' + gem 'simple_oauth', '>= 0.1', '< 0.3' +end group :test do gem 'addressable', '< 2.4' gem 'rspec', '>= 3' + gem 'simplecov', '~> 0.12.0' + gem 'webmock', '~> 2.3' +end + +group :lint do gem 'rubocop', '~> 1.12.0' gem 'rubocop-packaging', '~> 0.4' gem 'rubocop-performance', '~> 1.5.2' - gem 'simplecov', '~> 0.12.0' - gem 'webmock', '~> 2.3' end gemspec