Skip to content

Add Ruby version matrix to test on both 3.4 and 4.0#64

Merged
chorrell merged 1 commit intomainfrom
add-ruby-version-matrix
Feb 10, 2026
Merged

Add Ruby version matrix to test on both 3.4 and 4.0#64
chorrell merged 1 commit intomainfrom
add-ruby-version-matrix

Conversation

@chorrell
Copy link
Owner

Summary

Implements a GitHub Actions matrix strategy to test the project on multiple Ruby versions simultaneously.

Changes

Updated .github/workflows/ruby.yml to use a matrix strategy:

strategy:
  matrix:
    ruby-version: ['3.4', '4.0']
  fail-fast: false

Ruby Versions Tested

Ruby 3.4 - Current stable maintenance version

  • Still actively maintained
  • What we've been using

Ruby 4.0 - Latest stable version

  • Released December 25, 2025
  • Latest is 4.0.1 (January 13, 2026)
  • New features: ZJIT, Ruby Box, improved Ractors

Benefits

Compatibility assurance - Ensures code works on both versions
Early issue detection - Catches version-specific problems before users hit them
Future-proof - Ready for Ruby 4.0 adoption
User confidence - Shows project works across Ruby versions
Parallel execution - Tests run simultaneously, minimal CI time impact
fail-fast: false - All versions complete even if one fails

Impact

  • CI jobs: 1 job → 2 jobs (Ruby 3.4 and 4.0)
  • CI time: Similar (runs in parallel)
  • Coverage: Significantly increased

This ensures the project remains compatible with both the current stable version and the latest release!

Implements a GitHub Actions matrix strategy to test on multiple Ruby versions:
- Ruby 3.4 (current stable maintenance version)
- Ruby 4.0 (latest stable version)

Benefits:
- Ensures compatibility with both Ruby 3.4 and 4.0
- Catches Ruby version-specific issues early
- Demonstrates project works across Ruby versions
- Provides confidence for users on different Ruby versions
- fail-fast: false allows all versions to run even if one fails

The matrix runs tests in parallel, so CI time remains similar
while providing significantly more coverage.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@chorrell chorrell merged commit 0fbfa80 into main Feb 10, 2026
2 checks passed
@chorrell chorrell deleted the add-ruby-version-matrix branch February 10, 2026 23:10
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