Skip to content

docs: fix the coverage badge and link the CI badge - #640

Merged
mxschmitt merged 1 commit into
mainfrom
fix/readme-badges
Aug 17, 2026
Merged

docs: fix the coverage badge and link the CI badge#640
mxschmitt merged 1 commit into
mainfrom
fix/readme-badges

Conversation

@mxschmitt

Copy link
Copy Markdown
Owner

Two badge fixes in the README header.

Coverage badge#620 switched it from coveralls' own badge URL to the shields.io coverallsCoverage endpoint. That endpoint now renders coverage: invalid, because shields reads https://coveralls.io/repos/github/mxschmitt/playwright-go.json, and that API is behind a Cloudflare "Just a moment..." interstitial:

$ curl -s "https://img.shields.io/coverallsCoverage/github/mxschmitt/playwright-go?branch=main"
<svg ... aria-label="coverage: invalid">

$ curl -s "https://coveralls.io/repos/github/mxschmitt/playwright-go.json?branch=main"
<!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title>

Coveralls' own badge URL does work — it 302s to S3 and lands on a real SVG:

$ curl -sL -o /dev/null -w "%{http_code} %{content_type} %{url_effective}\n" \
    "https://coveralls.io/repos/github/mxschmitt/playwright-go/badge.svg?branch=main"
200 image/svg+xml https://s3.amazonaws.com/assets.coveralls.io/badges/coveralls_80.svg

So this reverts that badge back to the coveralls URL.

CI badge — it was the only badge in the header that wasn't a link. Switched to the current /actions/workflows/build.yml/badge.svg form (the legacy /workflows/Go/badge.svg path is deprecated) and linked it to the workflow's runs page.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Fe1uKA17jDoXYiQk8hmnPa

The shields.io coveralls endpoint renders "coverage: invalid" because
coveralls' JSON API now sits behind a Cloudflare interstitial, so shields
can't read the percentage. Go back to coveralls' own badge URL, which
serves a real SVG (image/svg+xml, 200) after its redirect.

Also switch the CI badge to the current
/actions/workflows/build.yml/badge.svg form and link it to the workflow
runs page — it was the only badge in the list that wasn't clickable.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fe1uKA17jDoXYiQk8hmnPa
@mxschmitt
mxschmitt merged commit 6b3d813 into main Aug 17, 2026
21 checks passed
@mxschmitt
mxschmitt deleted the fix/readme-badges branch August 17, 2026 05:24
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