Skip to content

Use reusable Danger workflow with a separate Gemfile - #3062

Merged
ericproulx merged 1 commit into
ruby-grape:masterfrom
dblock:dblock/danger-gemfile-input
Nov 7, 2026
Merged

ericproulx merged 1 commit into
ruby-grape:masterfrom
dblock:dblock/danger-gemfile-input

Conversation

@dblock

@dblock dblock commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #3057. It keeps Danger in gemfiles/danger.gemfile but uses the new gemfile input in numbata/danger-pr-comment rather than copying the reusable workflow steps into Grape.

The workflow calls numbata/danger-pr-comment/.github/workflows/danger-run.yml@main with gemfile: gemfiles/danger.gemfile. The Danger Comment workflow and its report artifact remain unchanged.

Validation

  • bundle exec rake (379 files inspected, 3,184 examples, 0 failures)
  • The reusable workflow’s gemfile input was merged to danger-pr-comment main in Allow error! to support objects #13.

@dblock
dblock force-pushed the dblock/danger-gemfile-input branch from 40d3394 to 66adb6f Compare November 7, 2026 13:26
@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Danger Report

No issues found.

View run

Danger ran from the main Gemfile's :test group, which every gemfile in
gemfiles/ evaluates. So each test job resolved and installed Danger's
gems as well: 28 of the bundle's 90, Faraday, Octokit and kramdown
among them. The `git < 6` pin (ruby-grape#3045) went to every bundle too.

gemfiles/danger.gemfile now holds danger, danger-changelog,
danger-pr-comment and the git pin, and nothing else, not even the
gemspec. The main Gemfile drops them.

numbata/danger-pr-comment's danger-run.yml can't pick a Gemfile, and a
caller's env doesn't reach a reusable workflow. danger.yml therefore
runs that workflow's steps itself, with BUNDLE_GEMFILE set on the job.
The report artifact keeps the same names, so danger-comment.yml still
posts the PR comment unchanged. The Dangerfile is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ericproulx
ericproulx merged commit 5ba941b into ruby-grape:master Nov 7, 2026
36 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.

2 participants