wjervis7/Vitest Badge Action

This action parses the json summary created by Vitest, and creates a badge based on the results.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
result-typeType of result to make badge for. Can be 'lines', 'statements', 'functions', or 'branches'.yes
upload-badgeIndicate if badge should be uploaded to Gist.true
badge-pathPath to save the temporary badge to.badge.svg
gist-tokenPAT for writing to gist.
gist-urlUrl to Gist.
vitest-config-pathPath to the vitest config file.vitest.config.ts
summary-pathPath to the json summary file../coverage/coverage-summary.json
badge-textText to display on badge.Tests
badge-pass-colorAn array (comma separated) with hex (without #) or named colors of the badge value background, when coverage is at or above the threshold. More than one creates gradient background.31c653
badge-fail-colorAn array (comma separated) with hex (without #) or named colors of the badge value background, when coverage is below the threshold. More than one creates gradient background.800000
badge-neutral-colorAn array (comma separated) with hex (without #) or named colors of the badge value background, when coverage results were not found. More than one creates gradient background.696969

no outputs