From 15fda81b93d7b116d876fe09378087afa85d97db Mon Sep 17 00:00:00 2001 From: Toshimaru Date: Thu, 16 May 2024 19:58:24 +0900 Subject: [PATCH] ci: CI against rubocop v1.57-v1.63 --- .github/workflows/test.yml | 24 +++++++++++++++--------- Appraisals | 2 +- Gemfile | 4 ---- gemfiles/rubocop_1.57.gemfile | 4 ---- gemfiles/rubocop_1.58.gemfile | 14 ++++++++++++++ gemfiles/rubocop_1.59.gemfile | 14 ++++++++++++++ gemfiles/rubocop_1.60.gemfile | 14 ++++++++++++++ gemfiles/rubocop_1.61.gemfile | 14 ++++++++++++++ gemfiles/rubocop_1.62.gemfile | 14 ++++++++++++++ gemfiles/rubocop_1.63.gemfile | 14 ++++++++++++++ 10 files changed, 100 insertions(+), 18 deletions(-) create mode 100644 gemfiles/rubocop_1.58.gemfile create mode 100644 gemfiles/rubocop_1.59.gemfile create mode 100644 gemfiles/rubocop_1.60.gemfile create mode 100644 gemfiles/rubocop_1.61.gemfile create mode 100644 gemfiles/rubocop_1.62.gemfile create mode 100644 gemfiles/rubocop_1.63.gemfile diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 50d42ef..907df15 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,18 +10,24 @@ jobs: test: strategy: matrix: - ruby: ['2.7', '3.0', '3.1', '3.2', '3.3'] + ruby: ["2.7", "3.0", "3.1", "3.2", "3.3"] gemfile: - gemfiles/rubocop_1.57.gemfile + - gemfiles/rubocop_1.58.gemfile + - gemfiles/rubocop_1.59.gemfile + - gemfiles/rubocop_1.60.gemfile + - gemfiles/rubocop_1.61.gemfile + - gemfiles/rubocop_1.62.gemfile + - gemfiles/rubocop_1.63.gemfile env: BUNDLE_GEMFILE: ${{ matrix.gemfile }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Ruby ${{ matrix.ruby }} - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - bundler-cache: true - - name: Run Test - run: bundle exec rake + - uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Run Test + run: bundle exec rake diff --git a/Appraisals b/Appraisals index 3d8356c..c531ad7 100644 --- a/Appraisals +++ b/Appraisals @@ -1,6 +1,6 @@ # frozen_string_literal: true -SUPPORTED_VERSIONS = %w[1.57].freeze +SUPPORTED_VERSIONS = %w[1.57 1.58 1.59 1.60 1.61 1.62 1.63].freeze SUPPORTED_VERSIONS.each do |version| appraise "rubocop-#{version}" do diff --git a/Gemfile b/Gemfile index 66d6b1f..1f3f6c7 100644 --- a/Gemfile +++ b/Gemfile @@ -9,7 +9,3 @@ gem "bundler" gem "minitest" gem "rake" gem "rails", ">= 5.2" -# This is a workaround to prevent the following error in RuboCop Rails 2.21.2. -# https://github.com/toshimaru/rubocop-rails_config/actions/runs/6522833241/job/17712818757#step:4:85 -# This gem specification can be removed once a version resolving the issue is released. -gem "rubocop-rails", "2.21.1" diff --git a/gemfiles/rubocop_1.57.gemfile b/gemfiles/rubocop_1.57.gemfile index 87c694c..691ea3c 100644 --- a/gemfiles/rubocop_1.57.gemfile +++ b/gemfiles/rubocop_1.57.gemfile @@ -10,9 +10,5 @@ gem "minitest" gem "rake" gem "rails", ">= 5.2" gem "rubocop", "~> 1.57.0" -# This is a workaround to prevent the following error in RuboCop Rails 2.21.2. -# https://github.com/toshimaru/rubocop-rails_config/actions/runs/6522833241/job/17712818757#step:4:85 -# This gem specification can be removed once a version resolving the issue is released. -gem "rubocop-rails", "2.21.1" gemspec path: "../" diff --git a/gemfiles/rubocop_1.58.gemfile b/gemfiles/rubocop_1.58.gemfile new file mode 100644 index 0000000..ebbc3f1 --- /dev/null +++ b/gemfiles/rubocop_1.58.gemfile @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "bundler" +gem "minitest" +gem "rake" +gem "rails", ">= 5.2" +gem "rubocop", "~> 1.58.0" + +gemspec path: "../" diff --git a/gemfiles/rubocop_1.59.gemfile b/gemfiles/rubocop_1.59.gemfile new file mode 100644 index 0000000..7293c4a --- /dev/null +++ b/gemfiles/rubocop_1.59.gemfile @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "bundler" +gem "minitest" +gem "rake" +gem "rails", ">= 5.2" +gem "rubocop", "~> 1.59.0" + +gemspec path: "../" diff --git a/gemfiles/rubocop_1.60.gemfile b/gemfiles/rubocop_1.60.gemfile new file mode 100644 index 0000000..f769550 --- /dev/null +++ b/gemfiles/rubocop_1.60.gemfile @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "bundler" +gem "minitest" +gem "rake" +gem "rails", ">= 5.2" +gem "rubocop", "~> 1.60.0" + +gemspec path: "../" diff --git a/gemfiles/rubocop_1.61.gemfile b/gemfiles/rubocop_1.61.gemfile new file mode 100644 index 0000000..91c2e27 --- /dev/null +++ b/gemfiles/rubocop_1.61.gemfile @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "bundler" +gem "minitest" +gem "rake" +gem "rails", ">= 5.2" +gem "rubocop", "~> 1.61.0" + +gemspec path: "../" diff --git a/gemfiles/rubocop_1.62.gemfile b/gemfiles/rubocop_1.62.gemfile new file mode 100644 index 0000000..777bdbd --- /dev/null +++ b/gemfiles/rubocop_1.62.gemfile @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "bundler" +gem "minitest" +gem "rake" +gem "rails", ">= 5.2" +gem "rubocop", "~> 1.62.0" + +gemspec path: "../" diff --git a/gemfiles/rubocop_1.63.gemfile b/gemfiles/rubocop_1.63.gemfile new file mode 100644 index 0000000..1210ab5 --- /dev/null +++ b/gemfiles/rubocop_1.63.gemfile @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "bundler" +gem "minitest" +gem "rake" +gem "rails", ">= 5.2" +gem "rubocop", "~> 1.63.0" + +gemspec path: "../"