Add optional project_stats input to rails-ci workflow - #27
Open
wesrich wants to merge 4 commits into
Open
Conversation
Runs the project-stats action in the background right after gems are installed, reusing the workflow's existing Ruby setup instead of installing it a second time, so nothing waits on it and stats land in the job summary for free. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
wesrich
force-pushed
the
claude/project-stats-ci-integration-234e1e
branch
from
August 11, 2026 14:55
54edbee to
53b7d97
Compare
RoleModel/actions/project-stats was added in v3.1.0, so it doesn't exist at v1 — pin to v3 instead, matching the rest of the workflow. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Gives project_stats its own entry in the PR checks list, matching Test Results/brakeman, instead of being buried inside the ci job's step log. The stats table is still captured early as a background step (right after gems install) for zero added wall-clock time; only the lightweight Check Run publish is deferred to the end, grouped with the other end-of-run reporting steps. project-stats/action.yml keeps writing to $GITHUB_STEP_SUMMARY too, so its existing standalone usage (its own job, own summary) is unaffected — it now also exposes the table as a `table` output for callers that want to publish it elsewhere. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Self-reference was still pinned to the released v3 tag, which doesn't have the new `table` output yet. Will revert to @V3 before merge. Co-Authored-By: Claude Sonnet 5 <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
project_statsboolean input to therails-ci.ymlreusable workflow (defaultfalse)project-statsaction as abackground: truestep right after gems are installed, passinginstall-ruby: falseso it reuses the workflow's existing Ruby setup instead of installing it a second timeTest plan
project_stats: truein a caller repo's workflow and confirm the Project Stats table shows up in the job summary without lengthening the CI job