Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ruby 3.1 and Rails 6.1 and 7 to the CI matrix #194

Merged
merged 1 commit into from
Mar 4, 2022
Merged

Add Ruby 3.1 and Rails 6.1 and 7 to the CI matrix #194

merged 1 commit into from
Mar 4, 2022

Conversation

petergoldstein
Copy link
Contributor

This PR adds explicit gemfiles for Rails 6.1 and Rails 7. It updates the Ruby 3.1 configuration to run against these two new entries as well as against Rails edge.

Copy link
Contributor

@Mangara Mangara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! We should definitely do this.
I just have some questions about the conditional gems for the 6.1 gemfile.


eval_gemfile "../Gemfile"

if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new("3.1")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why this is necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mail gem has an issue discussing the need here - mikel/mail#1439 . And the Rails team discusses it here - rails/rails#44600 .

These gems are not included by default in Ruby 3.1, so they need to be explicitly included. Attempting to explicitly include them in older Rubies causes issues, so the invoking Gemfile is supposed to explicitly include them.

gemfiles/rails_6_1.gemfile Show resolved Hide resolved
@Mangara
Copy link
Contributor

Mangara commented Mar 4, 2022

I want to see a CI run for this PR before merging. I think we had an issue in our workflow setup that prevented it from triggering a CI run. That should be corrected after merging #195, so I'm going to close and re-open this PR to try and trigger a CI run.

@Mangara Mangara closed this Mar 4, 2022
@Mangara Mangara reopened this Mar 4, 2022
@Mangara Mangara merged commit f13990b into Shopify:main Mar 4, 2022
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems March 4, 2022 21:37 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants