Skip to content

Conversation

@taketo1113
Copy link

This Pull Request adds GitHub Actions CI to run tests across multiple Ruby versions.

The CI targets Ruby versions from 3.3 down to 2.3.
The minimum version is set to 2.3 due to difficulties in running CI on older Ruby versions.

Additionally, the outdated Travis CI configuration has been removed.

Fix to use Hoe 3.x for Ruby < 3.0 due to minitest 5.16+ incompatibility
Comment on lines +6 to +12
if RUBY_VERSION >= '3.0'
gem 'hoe'
else
# Since Minitest 5.16+ does not work on Ruby 2.7 or earlier, use Hoe 3.x.
# https://github.com/seattlerb/hoe/blob/v4.0.1/lib/hoe/test.rb#L68
gem 'hoe', '~> 3'
end
Copy link
Author

Choose a reason for hiding this comment

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

Hoe 4.x depends on Minitest 5.16+, which is incompatible with Ruby versions earlier than 3.0.
Therefore, for Ruby versions earlier than 3.0, it uses Hoe 3.x.

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.

1 participant