Start testing the code on Ruby 3, without making it the default yet.
If we get to a point where there are gem conflicts for ruby5x
that won't even install under Ruby 3 then we'd need to do something more complex, but this should work for now I think, and get Ruby 3 under test coverage at least?
Notes:
- We have to exclude Rails < 6.0 in
.circleci/config.yml
when running tests on Ruby 3, since only Rails 6 and above support Ruby 3. -
✅ This won't actually run any of the rspec tests on Ruby 3 until https://github.com/thoughtbot/administrate/pull/2125 is merged, since the tests aren't currently actually running on Circle for Rails >= 6 and Ruby 3 only runs on Rails >= 6.