Skip to content

Commit

Permalink
ci: CI against rubocop v1.57-v1.63 (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
toshimaru committed May 16, 2024
1 parent 75664da commit 289851d
Show file tree
Hide file tree
Showing 10 changed files with 100 additions and 18 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Appraisals
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 0 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 0 additions & 4 deletions gemfiles/rubocop_1.57.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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: "../"
14 changes: 14 additions & 0 deletions gemfiles/rubocop_1.58.gemfile
Original file line number Diff line number Diff line change
@@ -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: "../"
14 changes: 14 additions & 0 deletions gemfiles/rubocop_1.59.gemfile
Original file line number Diff line number Diff line change
@@ -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: "../"
14 changes: 14 additions & 0 deletions gemfiles/rubocop_1.60.gemfile
Original file line number Diff line number Diff line change
@@ -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: "../"
14 changes: 14 additions & 0 deletions gemfiles/rubocop_1.61.gemfile
Original file line number Diff line number Diff line change
@@ -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: "../"
14 changes: 14 additions & 0 deletions gemfiles/rubocop_1.62.gemfile
Original file line number Diff line number Diff line change
@@ -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: "../"
14 changes: 14 additions & 0 deletions gemfiles/rubocop_1.63.gemfile
Original file line number Diff line number Diff line change
@@ -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: "../"

0 comments on commit 289851d

Please sign in to comment.