Modernize CI/test runner: Appraisal-based matrix mirroring solid-process#134
Merged
Conversation
- Replace per-Rails subdirectory gemfiles with Appraisal-driven setup - Add Appraisals file gated on RUBY_VERSION (rails 6.0..8.1 + edge) - Rewrite GitHub Actions matrix to Ruby 2.7..4.0+head, conditional Rails steps - Preserve ENABLE_TRANSITIONS true/false axis as a CI matrix dimension - Add bin/matrix and rake matrix task to run the full local matrix - Drop pry-byebug from test_helper (dev-only); simplify SimpleCov gating - Fix result_test inspect assertion to be Ruby-version agnostic (3.4 hash format) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Generated on Ruby 4.0; CI regenerates the remaining ones per Ruby version. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Add id-token: write permission to the test job for OIDC auth - Upload coverage to Qlty on Ruby 3.4 + transitions=true, push events only - Replace CodeClimate maintainability/coverage badges with Qlty equivalents in both README.md and README.pt-BR.md Assumes the qlty.sh project lives at gh/serradura/projects/u-case; adjust the badge URLs if the project is created under a different slug. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The repo uses a token secret instead of OIDC, so the id-token: write permission is no longer needed. Co-Authored-By: Claude Opus 4.7 (1M context) <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.
Summary
gemfiles/rails_X.Y/Gemfilelayout with anAppraisalsfile + auto-generatedgemfiles/rails_X_Y.gemfile, matching the solid-process gem layout.ENABLE_TRANSITIONS=true/falsematrix dimension.bin/setup,bin/matrix, and arake matrixtask that loops every applicable appraisal × both transitions modes.Test infra fixes discovered while wiring this up
test/test_helper.rbrequiredpry-byebugunconditionally, which blocked any env without the dev gem. Removed.test/micro/case/result_test.rb#test_inspecthard-coded the pre-Ruby-3.4 hash inspect format ({:k=>v}). Now derives the expected string fromHash#inspectso it works across Ruby versions.Open follow-ups (not in this PR)
required_ruby_versionin the gemspec still says>= 2.2.0— bumping to>= 2.7would match the new CI floor.appraisal installonly generatedrails_8_1.gemfileandrails_edge.gemfilelocally (Ruby 4.0 is the only Ruby on the dev box, and the Appraisals file gates older Rails to older Rubies, mirroring solid-process). CI regenerates the rest per Ruby version viabundle exec appraisal install.Test plan
bin/setupthenbin/matrixruns locally end-to-end on at least one Ruby versionbundle exec rake matrixruns rails-8-1 + rails-edge × transitions true/false → 133 tests, 0 failures (4 jobs)🤖 Generated with Claude Code