Skip to content

Readme badges, and CI reports published to Pages - #71

Merged
jbtule merged 2 commits into
masterfrom
readme-badges-pages
Sep 22, 2026
Merged

jbtule merged 2 commits into
masterfrom
readme-badges-pages

Conversation

@jbtule

@jbtule jbtule commented Sep 22, 2026

Copy link
Copy Markdown
Member

These two commits were on the #70 branch but had not landed when it merged, so they are here instead.

Badges

The two badges in the readme pointed at dotnet.yml and dotnet48.yml, deleted in #64 — they were broken, not merely out of date. One build.yml badge replaces both, alongside test-count and line/branch coverage.

No badge service and no external dependency: the shields URLs are static text, and a badges job on a green master run rewrites the numbers in place from that run's own results JSON and cobertura, committing only when a number changed, with [skip ci] so it starts no new run. The same mechanism FSharp.Interop.Dlr uses, so there is one pattern across both.

Pages

A CI artifact is a zip behind an authenticated download, so the HTML test report could not be linked from the readme. Pages can, and this repository was not using it — no site configured, no homepage set — so the reports now publish to ekonbenefits.github.io/impromptu-interface:

  • /tests/ — the combined report across net8.0, net10.0, net47 and browser-wasm
  • /coverage/ — a browsable line and branch report
  • a small landing page linking both, and back here

Built from artifacts the run already produces; the coverage job just emits Html alongside the cobertura it already wrote. Deployed from master only, so the link in the readme always means master rather than whichever branch ran last; PR runs keep the artifact and the run-summary table.

Pages is enabled with build_type: workflow. The site is public, which is what a public repository's CI output already is. ekonbenefits.github.io/impromptu-interface is now this project's canonical Pages URL — if docs ever want it, the landing page is the natural place and the reports can move under a path.

🤖 Generated with Claude Code

https://claude.ai/code/session_016mwfq4oeZW8SiD4HjTHYdg

jbtule and others added 2 commits September 22, 2026 13:56
The two badges there pointed at dotnet.yml and dotnet48.yml, which no
longer exist, so they were broken; one build.yml badge replaces both,
alongside test-count and line/branch coverage badges.

No badge service and no GitHub Pages: the shields URLs are static text,
and a job on a green master run rewrites the numbers in place from that
run's own results and cobertura, committing only when one changed, with
[skip ci] so it starts no new run. Same mechanism as FSharp.Interop.Dlr.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016mwfq4oeZW8SiD4HjTHYdg
An artifact is a zip behind an authenticated download, so it cannot be
linked from the readme; Pages can. The site is built from the same
artifacts the run already produces - the combined HTML test report and a
browsable coverage report - behind a small landing page, deployed from
master only.

Pages was not configured on this repository and no homepage was set, so
the site lands at ekonbenefits.github.io/impromptu-interface. It is
public, which is what a public repository's CI output already is.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016mwfq4oeZW8SiD4HjTHYdg
Copilot AI lite review requested due to automatic review settings September 22, 2026 18:56
@jbtule
jbtule merged commit b0c330c into master Sep 22, 2026
19 checks passed
@jbtule
jbtule deleted the readme-badges-pages branch September 22, 2026 19:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Workflow concurrency and deployment gating issues remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Medium severity · 1 Low severity

Open (3)
What changed in this PR

Updates README badges and publishes test and coverage reports to GitHub Pages.

Changes:

  • Replaces obsolete badges with current build, test, and coverage badges.
  • Adds Pages deployment for test and coverage reports.
  • Automates badge updates from CI artifacts.
File Summary Findings
Readme.md Adds current CI badges and report links. None.
.github/​workflows/​build.yml Generates reports, deploys Pages, and updates badges. Moderate: Prevent out-of-order Pages deployments and incomplete report publishing. Serialize badge writers and handle push races. Nit: Clarify the badge comment regarding Pages.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +142 to +143
needs: [summary, coverage]
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
Comment on lines +143 to +144
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
runs-on: ubuntu-latest
Comment on lines +243 to +244
# No external badge service and no GitHub Pages: the shields URLs are static text in the
# README, and this edits them.
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