Skip to content

ci: post test results to BadgeSmith and show test badges - #8

Merged
Blind-Striker merged 1 commit into
masterfrom
ci/badgesmith
Nov 15, 2026
Merged

Blind-Striker merged 1 commit into
masterfrom
ci/badgesmith

Conversation

@Blind-Striker

Copy link
Copy Markdown
Contributor

What

Show test status through BadgeSmith, the status standard across the opencode-dotnet repositories, mirroring the OpenCode .NET SDK.

  • CI (ci.yml, "Build and test"):
    • names each matrix leg linux, windows or macos;
    • adds the test reporter (dorny/test-reporter, pinned by SHA as in the SDK), which publishes a check run and the pass/fail/skip counts;
    • adds the two BadgeSmith steps: the action checked out at the commit the live API runs, then update-test-badge.
    • The BadgeSmith steps run on master pushes only and are fail-soft: a failed post never fails CI. The job gains checks: write.
    • One difference from the SDK: the reporter reads only the root-level TRX files. The merged TRX repeats the per-framework results and would count every test twice; the step's comment says so.
  • README: a CI badge and one test badge per OS, plus a small status table. There are no package badges until the first package is published.
  • Canon:
    • documentation.md (Consumer documentation) gains the BadgeSmith rule.
    • quality-gates.md now states the build/test job's checks: write, the only continue-on-error steps (the reporter on fork pull requests, and the BadgeSmith steps), the BadgeSmith secret's scope, and the two SHA-pinned actions.

Notes

  • The badge URLs return 404 "No test results found" until the first master push posts counts. The org-level secret TESTDATASECRET is in place.
  • The local check passed (Slopwatch, build, both format checks, tests). Hosted CI runs on this pull request.
  • No suppression is added, moved or removed.

@Blind-Striker
Blind-Striker added this pull request to the merge queue Nov 15, 2026
Merged via the queue into master with commit 99363a6 Nov 15, 2026
7 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.

1 participant