sidx1024 / report-nyc-coverage-github-action

GitHub Action that posts the report in a comment on a GitHub Pull Request from coverage data generated by nyc (istanbul)
MIT License
21 stars 10 forks source link

Add coverage level indicators #10

Closed sidx1024 closed 2 years ago

sidx1024 commented 2 years ago

Adds coverage level indicator beside the coverage percent.

Indicator images to be used in comment yellow green red

github-actions[bot] commented 2 years ago

Coverage Report

Commit: 6efd416

Type Percent
Total Statements Coverage  45.66%
Total Branches Coverage  50%
Total Functions Coverage  58.06%
Total Lines Coverage  45.9%
Details (changed files)
FileStatementsBranchesFunctionsLines
src/constants.js 100% 100% 100% 100%
src/format.js 88.88% 72.72% 88.88% 88.88%
src/index.js 0% 0% 0% 0%
src/parse.js 84.61% 66.66% 66.66% 84.61%
Details (all files)
FileStatementsBranchesFunctionsLines
src/constants.js 100% 100% 100% 100%
src/format.js 88.88% 72.72% 88.88% 88.88%
src/index.js 0% 0% 0% 0%
src/parse.js 84.61% 66.66% 66.66% 84.61%
src/utils.js 91.66% 85.71% 100% 90.9%