Repository navigation
Test on Ruby 3.0 to 3.4 before building the gem - #12
Merged
Merged
Conversation
The gemspec allows Ruby >= 3.0 (connector 3.8.0), but the workflow only tested 3.4. Add a test job with a matrix of Ruby 3.0 to 3.4. The build job needs it, so a failure on any Ruby stops the tag, the GitHub release and the gem push. The build job keeps building the gem once, on Ruby 3.4. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Problem / what this PR contains
Work item #34387 (Azure DevOps). Follows Juan Araya's review on ADO PR !25346 (thread 201132): the gemspec should allow older Rubies than 3.4 and CI should test them. Connector 3.8.0 (ADO PR !25414) sets
required_ruby_version >= 3.0, but this workflow only tested Ruby 3.4.This PR changes
.github/workflows/release.ymlonly. The workflow lives on GitHub only (the ADO sync cannot push workflow files), so the change goes through this PR.testjob: the suite on Ruby 3.0, 3.1, 3.2, 3.3 and 3.4 (fail-fast: false).buildnowneeds: test. A failure on any Ruby stops the tag, the GitHub release and the gem push, becausecreate-releaseandpublish-gemchain throughbuild.buildkeeps building the gem once, on Ruby 3.4. Its ownbundle installand test steps moved to the matrix; nothing else inbuilduses the repo's Gemfile (the smoke test installs the built gem on its own).buildfrom "Test and build gem" to "Build gem".Covered
Not covered
🤖 Generated with Claude Code