Skip to content

Test on Ruby 3.0 to 3.4 before building the gem - #12

Merged
csmichaelkamal merged 1 commit into
masterfrom
feature/release-workflow-ruby-matrix
Dec 3, 2026
Merged

csmichaelkamal merged 1 commit into
masterfrom
feature/release-workflow-ruby-matrix

Conversation

@csmichaelkamal

@csmichaelkamal csmichaelkamal commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

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.yml only. The workflow lives on GitHub only (the ADO sync cannot push workflow files), so the change goes through this PR.

  • New test job: the suite on Ruby 3.0, 3.1, 3.2, 3.3 and 3.4 (fail-fast: false).
  • build now needs: test. A failure on any Ruby stops the tag, the GitHub release and the gem push, because create-release and publish-gem chain through build.
  • build keeps building the gem once, on Ruby 3.4. Its own bundle install and test steps moved to the matrix; nothing else in build uses the repo's Gemfile (the smoke test installs the built gem on its own).
  • Renamed build from "Test and build gem" to "Build gem".

Covered

  • Tests on every Ruby the 3.8.0 gemspec allows, before anything is tagged or published.

Not covered

  • Rubies below 3.0. The gemspec refuses them.
  • The release itself, and the gem push. Unchanged here.

🤖 Generated with Claude Code

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>
@csmichaelkamal
csmichaelkamal marked this pull request as ready for review December 3, 2026 11:08
@csmichaelkamal csmichaelkamal self-assigned this Dec 3, 2026
@csmichaelkamal
csmichaelkamal merged commit a2720c0 into master Dec 3, 2026
7 of 8 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.

1 participant