Skip to content

Add matrix testing for Rails 7.x/8.0 to GitHub Actions#14

Merged
fumihumi merged 6 commits intomasterfrom
support-matrix-spec
May 8, 2025
Merged

Add matrix testing for Rails 7.x/8.0 to GitHub Actions#14
fumihumi merged 6 commits intomasterfrom
support-matrix-spec

Conversation

@fumihumi
Copy link
Contributor

@fumihumi fumihumi commented Apr 21, 2025

Overview

Enhanced the GitHub Actions CI configuration to support Ruby×Rails matrix testing.
This allows automated testing across combinations of Ruby 3.2-3.3 and Rails 7.1/8.0.

Drop ruby 3.1 support (already EOL)

Changes

  1. Modified GitHub Actions configuration file (.github/workflows/rspec.yml)

    • Added matrix configuration for Ruby versions (3.2/3.3/3.4) and Rails versions (7.x/8.0)
    • Set environment variables to reference version-specific Gemfiles
  2. Created Rails version-specific Gemfiles

    • .github/gemfiles/rails_7.1.gemfile
    • .github/gemfiles/rails_7.2.gemfile
    • .github/gemfiles/rails_8.0.gemfile
  3. Minor fixes

  • Change mysql adapter (mysql2 → trilogy) 3cea423
  • fix spec configurations 919af4b

Test Matrix

Tests will automatically run with the following combinations:

Ruby Rails
3.2 7.1
3.2 7.2
3.2 8.0
3.3 7.1
3.3 7.2
3.3 8.0
3.4 7.1
3.4 7.2
3.4 8.0

… configuration

- Replace all database host settings from 'localhost' to '127.0.0.1' for better compatibility
- Add explicit port configuration using ENV['MYSQL_PORT'] with default 3306
- Update all configuration files and code to use trilogy adapter instead of mysql2
@fumihumi fumihumi force-pushed the support-matrix-spec branch from b6a5d3a to e475ea0 Compare April 21, 2025 01:00
@fumihumi fumihumi changed the title Add matrix testing for Rails 7.1/8.0 to GitHub Actions Add matrix testing for Rails 7.x/8.0 to GitHub Actions Apr 21, 2025
- Configure CI to test with Ruby 3.1-3.4 and Rails 7.1/8.0
- Add version-specific Gemfiles in .github/gemfiles/
@fumihumi fumihumi force-pushed the support-matrix-spec branch from e475ea0 to b111b89 Compare April 21, 2025 01:07
@wt-l00
Copy link
Contributor

wt-l00 commented May 7, 2025

Should we also drop Ruby 3.1 support from octoball.gemspec? with b111b89

- s.required_ruby_version = '>= 3.1.0'
+ s.required_ruby_version = '>= 3.2.0'

@fumihumi fumihumi force-pushed the support-matrix-spec branch from b111b89 to 4db1e88 Compare May 7, 2025 10:21
@fumihumi fumihumi merged commit a484bc9 into master May 8, 2025
9 checks passed
@fumihumi fumihumi deleted the support-matrix-spec branch May 8, 2025 01:46
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