Skip to content

A GitHub Action that reads Clover format code coverage file from your test suite and outputs a text or markdown summary.

Notifications You must be signed in to change notification settings

sergiy-decima/clover-coverage-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clover Code Coverage Summary

A GitHub Action that reads Clover format code coverage file from your test suite and outputs a text or markdown summary.

You can add this action to your GitHub workflow:

- name: Summary Coverage Report
  uses: sergiy-decima/clover-coverage-action@1.0.0
  if: always()
  with:
    filename: clover-coverage.xml
    thresholds: 60..80
    fail_if_low: true

Inputs

filename

Required Code coverage file to analyse by clover format. If there are any spaces in a path or filename this value must be in quotes.

thresholds

Lower and upper threshold percentages for health indicators, lower threshold can also be used to fail the action. Separate the values with a space or dash or two dots, and enclose them in quotes; default "60 80" or "60-80" or "60..80".

fail_if_low

Fail the workflow if the overall Line Rate is below lower threshold - true or false (default). The default lower threshold is 60%, see thresholds.

Outputs

percent

Code coverage percent.


Below is screenshot of the positive workflow action:

Positive Coverage