Skip to content

Add Codecov badge to README and fix coverage link in PR comments #167

@polaz

Description

@polaz

Problem

The coverage badge in README.md links to https://gitlab-mcp.sw.foundation/coverage/ which shows a VitePress 404 page instead of coverage data. This happens because coverage is only integrated into VitePress dist during release events in docs.yml, but any subsequent push to main (docs changes) redeploys VitePress WITHOUT the coverage directory.

Solution

  1. Always generate coverage in docs workflow (remove if: github.event_name == 'release' condition) so /coverage/ is always up-to-date
  2. Add Codecov badge to README as a quick-glance percentage indicator alongside the existing detailed report link

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions