Skip to content
thermometer

GitHub Action

KnpLabs/K-pi

v0.1.0 Pre-release

KnpLabs/K-pi

thermometer

KnpLabs/K-pi

Compile, verify and publish metrics

Installation

Copy and paste the following snippet into your .yml file.

              

- name: KnpLabs/K-pi

uses: KnpLabs/K-pi@v0.1.0

Learn more about this action in KnpLabs/K-pi

Choose a version

The goal of this project is to make it easy to track metrics.

Configuration

Just create a .k-pi.dist.yaml file following the following pattern:

---
reports:
  <report-name>:
    storage:
      <storage-type>: <storage-config>

Integration with CI

Github Actions

Some examples

For all examples, please refer to the configuration file .k-pi.dist.yaml.

Track test coverage

See example-coverage.yaml

Track Github dependabot security alerts

See example-github-security.yaml

The goal of this metric is to count the number of alerts from dependabot's Github API and project them onto a graph to track their evolution over time.

In the configuration file, you can see that the configured storage is github-discussion. It means that data will be stored in the discussion but also projected onto a graph.

Track PhpMetrics data

See example-phpmetrics.yaml