8000 GitHub - grafana/code-coverage
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

grafana/code-coverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 

Repository files navigation

Code coverage report for Go and TypeScript

Prerequisites

TypeScript

  • yarn
  • package.json must contain a script yarn test:coverage which generates a report in "jest --coverage" style
  • runs in node 16.x environment

Description

Code coverage comment not posted on PRs from forks. That information can still be gleaned from the output of the previous step in the run.

This workflow does the following for caller pull requests:

  • Checks out caller's PR's code
  • Checks out caller's code on main
  • Calculates test coverage for each
  • Leaves a comment on the PR with a test coverage report with the difference between PR coverage vs main coverage
  • When commits are added to the PR, the existing comment should be updated with an up-to-date coverage report

Releasing

When updates are made to the workflow it needs to be re-released and any parent flows referencing this one will need to be updated.

In order to release:

  • Navigate to the releases page of the repo.
  • Select Draft a new release.
  • Create a new tag (increasing the version from the previous value).
  • Set the title to the new version.
  • Add a description for any changes that have been made since the previous release, ensure the target is main and then select Publish release.

The following workflows will then need to be updated, create a PR for each repository ensuring that the parent workflow targets the latest code coverage workflow.

Grafana repo

Datasources

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

0