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

Test against latest Ruby and Rails #326

Merged
merged 2 commits into from
Sep 4, 2024
Merged

Conversation

zhuravel
Copy link
Contributor

@zhuravel zhuravel commented Sep 4, 2024

  • Add Ruby 3.3 to test matrix, remove Ruby 3.0 and 3.1
  • Add Rails 7.1 and 7.2 to test matrix, remove Rails 6.0 and drop support for Rails 6.0
  • Use Appraisal to generate gemfiles with different dependencies

@@ -0,0 +1,37 @@
# Contributing to Datagrid
Copy link
Owner

@bogdan bogdan Sep 4, 2024

Choose a reason for hiding this comment

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

Is this file somehow reachable from github UI? If not, I think it is better to make it a paragraph in Readme or at least link it from there.

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 guidelines should be visible when creating an issue or pull request:
https://github.blog/news-insights/contributing-guidelines/#contributors-wanted-inquire-within

CONTRIBUTING.md is commonly used to keep the README concise, which is why I created it separately. However, I’ll go ahead and add a link to CONTRIBUTING.md in the README to make it more accessible.

name: 'Ruby ${{ matrix.ruby-version }}, Rails ${{ matrix.rails-version }}'
# To keep matrix size down, only test highest and lowest rubies.
ruby: ["2.7", "3.3"]
rails: ["6.1", "7.0", "7.1", "7.2"]
Copy link
Owner

Choose a reason for hiding this comment

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

Was there any particular reason to drop 6.0 support?

Copy link
Contributor Author

@zhuravel zhuravel Sep 4, 2024

Choose a reason for hiding this comment

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

I’ve removed support for Rails 6.0 as tests are failing on this version. Although the test build was showing as green, it was actually running on Rails 6.1 instead of 6.0. This happened because the Gemfile used ~> 6.0, which incorrectly installed Rails 6.1. To truly use Rails 6.0, the Gemfile should have specified ~> 6.0.0.

I chose not to reintroduce these hacks, and instead, I believe it’s time to officially drop support for this long end-of-life Rails version.

Here’s a screenshot for reference:

2024-09-04 20-28-18

@bogdan bogdan merged commit 487e1de into bogdan:master Sep 4, 2024
7 checks passed
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