Repository navigation
ci: publish coverage badges from develop runs - #49
Merged
Merged
Conversation
The suite has measured line coverage on every develop push since #288, but the number only ever appeared in a job log. Surface it on the README instead, so the repository shows where the project actually stands. code-check.yml mounts the container's coverage directory out (nothing else does — `docker compose run` discards it) and exports the percentage as a workflow_call output: SimpleCov's .last_run.json for the backend job, Vitest's coverage-summary.json for the frontend one. A new ci.yml job renders those into shields.io endpoint documents on an orphan `badges` branch, so refreshing a badge never puts a bot commit in develop's history. No third-party coverage service and no secret beyond GITHUB_TOKEN. The badges appear once this lands and develop runs; until then the endpoints 404 and shields renders them as unavailable. Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
alex-astafyev
pushed a commit
to alex-astafyev/flow
that referenced
this pull request
Aug 19, 2026
* origin/develop: feat(resources): unify Agents/Wrappers/Repositories/Integrations tables (AixleHQ#51) feat(personal-mcp): add trigger, authoring and diagnostic tools (AixleHQ#52) ci: stop cancelling develop runs when merges land back to back (AixleHQ#50) fix(container-runtime): honor the timeout option on Docker exec fix(container-runtime): honor the timeout option on Docker exec (AixleHQ#48) ci: publish coverage badges from develop runs (AixleHQ#49) # Conflicts: # .github/workflows/ci.yml
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.
What
Publishes backend and frontend line coverage as README badges, refreshed by every green push to
develop.How
code-check.ymlmounts the container'scoverage/directory out —docker compose runotherwise discards it — and exports the percentage as aworkflow_calloutput:.result.linefrom SimpleCov's.last_run.json(backend job) or.total.lines.pctfrom Vitest'scoverage-summary.json(frontend job). Only whenrun-coverage: 1, which is already develop-pushes-only.ci.ymlgains acoverage-badgesjob (push todevelop,contents: write) that renders the two numbers into shields.io endpoint documents and commits them to an orphanbadgesbranch viagit worktree, so a badge refresh never lands a bot commit indevelop's history.README.mdgets a CI status badge plus the two coverage badges.Colour thresholds: ≥90 brightgreen, ≥80 green, ≥70 yellowgreen, ≥60 yellow, ≥50 orange, else red. At today's numbers that renders backend 90.3% brightgreen and frontend 78.34% yellowgreen.
No third-party coverage service, no account, no secret beyond
GITHUB_TOKEN— Codecov was the alternative but wants an org account and a token in exchange for PR diff-coverage comments.Verification
actionlintclean on both workflows (the one remaining warning is pre-existing, inimages.yml)badgesbranch, including the pushjqfilters checked against real report files from a localcheck_all:90.0and78.34docker compose exec -T web make check_all— all greenNote
The
badgesbranch does not exist yet, so the two coverage badges render as unavailable until this merges anddevelopruns once.🤖 Generated with Claude Code