Add the latest ruby and rails to CI matrix#244
Open
willnet wants to merge 2 commits into
Open
Conversation
Add Ruby4.0, Rails8.0, 8.1 to the CI matrix. Also update actions/checkout to the latest version. Change the Ruby version in the lint workflow to "ruby" so that the latest stable version of Ruby is used automatically. Since the tests currently fail with Minitest 6, I updated the gemspec to restrict Minitest to version 5.x.
Adding Ruby 4.0 to the CI matrix makes ruby/setup-ruby use Bundler 4, which turns the existing sqlite3 development dependency mismatch into a hard failure before the test suite starts. Previously, Bundler 2 allowed the Active Record 7 Gemfiles to override the gemspec's sqlite3 ~> 2.2.0 development dependency with sqlite3 ~> 1.4, emitting only a warning. Bundler 4 now treats those requirements as conflicting. Relax the gemspec dependency to sqlite3 >= 1.4, < 3.0 so each appraisal Gemfile can select the adapter version required by its Active Record series: sqlite3 1.x for Active Record 7 and sqlite3 2.x for Active Record 8. Also add rdoc as an explicit development dependency because Ruby 4.0 no longer ships rdoc/task as a default gem, and the Rakefile requires it when running the test tasks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the latest Ruby and Rails to CI, update actions/checkout to the latest version, and fix the causes of CI failures.
CI results