Skip to content

ci: publish Go coverage and import it into Sonar #90

Description

@jamessawle

Problem

CI does not currently generate or publish a Go coverage report. Sonar therefore reports 0.0% coverage on new code, and contributors cannot inspect a coverage artifact from the workflow.

Scope

  • Generate a Go coverage profile in CI.
  • Publish a human-readable coverage summary.
  • Retain the coverage profile as a downloadable workflow artifact.
  • Where supported by the selected Sonar analysis mode, import the Go coverage profile so the Sonar new-code coverage measure is meaningful.
  • Document the coverage checks in CONTRIBUTING.md.

Acceptance criteria

  • CI publishes a Go coverage summary.
  • CI retains the coverage profile as a downloadable artifact.
  • Sonar shows imported Go coverage when the project plan and analysis mode support it.
  • CONTRIBUTING.md documents the coverage workflow.
  • mise run validate passes.

Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceRepository, tooling, release, and dependency upkeep

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions