Skip to content

Commit

Permalink
chore: add coverage badges.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 21, 2023
1 parent 19b6460 commit e636be0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ jobs:
- run: idoc -s "path-templater {{version}}"
- run: npm run coverage
- run: tree -I 'node_modules|.git|.github|src' -L 3 -a

- name: Create Coverage Badges
uses: jaywcjlove/coverage-badges-cli@main
with:
style: flat
source: coverage/coverage-summary.json
output: coverage/badges.svg

- run: cp -rp coverage/lcov-report dist

- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ path-templater
[![CI](https://github.com/jaywcjlove/path-templater/actions/workflows/main.yml/badge.svg)](https://github.com/jaywcjlove/path-templater/actions/workflows/main.yml)
[![NPM Downloads](https://img.shields.io/npm/dm/path-templater.svg?style=flat)](https://www.npmjs.com/package/path-templater)
[![NPM version](https://img.shields.io/npm/v/path-templater.svg?style=flat&label=path-templater)](https://npmjs.org/package/path-templater)
[![Coverage Status](https://jaywcjlove.github.io/path-templater/badges.svg)](https://jaywcjlove.github.io/path-templater/lcov-report/)

This is a simple path template replacement tool for nodejs.

Expand Down

0 comments on commit e636be0

Please sign in to comment.