Skip to content

♻️ Switch to setup-ruby-flash in coverage workflow#4

Merged
pboling merged 5 commits intomainfrom
setup-ruby-flash
Feb 8, 2026
Merged

♻️ Switch to setup-ruby-flash in coverage workflow#4
pboling merged 5 commits intomainfrom
setup-ruby-flash

Conversation

@pboling
Copy link
Copy Markdown
Member

@pboling pboling commented Feb 7, 2026

@pboling pboling self-assigned this Feb 7, 2026
Copilot AI review requested due to automatic review settings February 7, 2026 21:57
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the CI coverage workflow to use appraisal-rb/setup-ruby-flash for Ruby/RubyGems/Bundler setup, and documents the change in the changelog.

Changes:

  • Switch .github/workflows/coverage.yml from ruby/setup-ruby@v1 to appraisal-rb/setup-ruby-flash.
  • Adjust the Appraisal install command to use bundle install --gem-manager=ore.
  • Add/adjust entries in CHANGELOG.md describing CI/workflow changes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
CHANGELOG.md Adds Unreleased notes about the workflow change and CI coverage/testing behavior.
.github/workflows/coverage.yml Replaces Ruby setup action and modifies the dependency install invocation under Appraisal.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 68 to 71
- name: Appraisal for ${{ matrix.appraisal }}
run: bundle exec appraisal ${{ matrix.appraisal }} bundle
run: bundle exec appraisal ${{ matrix.appraisal }} bundle install --gem-manager=ore
- name: Tests for ${{ matrix.ruby }}@current via ${{ matrix.exec_cmd }}
run: bundle exec appraisal ${{ matrix.appraisal }} bundle exec ${{ matrix.exec_cmd }}
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous workflow explicitly ran bundle before any bundle exec appraisal ... calls (to ensure the bundle for BUNDLE_GEMFILE=Appraisal.root.gemfile is installed). In this version, the first bundle invocation is inside bundle exec ..., so it’s unclear where the initial gem install happens. If setup-ruby-flash isn’t performing a bundle install for the root/Appraisal bundle, the subsequent bundle exec appraisal ... steps will fail on a clean runner. Consider adding back an explicit install step (potentially using --gem-manager=ore) or otherwise making the install behavior explicit.

Copilot uses AI. Check for mistakes.
Comment on lines +60 to +66
- name: Setup Ruby & Gems via rv & ore
uses: appraisal-rb/setup-ruby-flash@main
with:
ruby-version: "${{ matrix.ruby }}"
rubygems: "${{ matrix.rubygems }}"
bundler: "${{ matrix.bundler }}"
bundler-cache: false
ore-install: true
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uses: appraisal-rb/setup-ruby-flash@main is an unpinned ref, so the workflow can change behavior (or break) without any change in this repo. Prefer pinning to a release tag or commit SHA to reduce supply-chain risk and improve reproducibility.

Copilot uses AI. Check for mistakes.

- Updated documentation on hostile takeover of RubyGems
- https://dev.to/galtzo/hostile-takeover-of-rubygems-my-thoughts-5hlo
- switch to [setup-ruby-flash](https://github.com/appraisal-rb/setup-ruby-flash) in some workflows
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changelog entries under "Changed" are capitalized elsewhere (e.g., "Updated ..."), but this new entry starts with lowercase "switch". Consider capitalizing it for consistency, and clarify wording: this PR only updates the coverage workflow, so "some workflows" may be misleading.

Suggested change
- switch to [setup-ruby-flash](https://github.com/appraisal-rb/setup-ruby-flash) in some workflows
- Updated coverage workflow to use [setup-ruby-flash](https://github.com/appraisal-rb/setup-ruby-flash)

Copilot uses AI. Check for mistakes.
Comment on lines +35 to +36
- RSpec tests actually run in CI, and report coverage

Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new "Fixed" changelog entry claims RSpec tests now run in CI and report coverage, but the code changes in this PR are limited to swapping the Ruby setup action / install command in the coverage workflow (the test command itself is unchanged). Please adjust the changelog entry to describe the actual fix introduced here, or move it to the PR that made RSpec/coverage start working.

Copilot uses AI. Check for mistakes.
@pboling pboling merged commit 6cf6fd1 into main Feb 8, 2026
22 of 23 checks passed
@pboling pboling deleted the setup-ruby-flash branch February 8, 2026 02:03
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