Skip to content

Commit aa5a066

Browse files
committed
chore: update workflow config.
1 parent 62f7044 commit aa5a066

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/ci.yml

+10
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,19 @@ jobs:
1414
node-version: 16
1515

1616
- run: npm install
17+
- run: npm run build
1718
- run: npm run test
1819
- run: npm run coverage
1920

21+
- run: cp -rp coverage dist
22+
23+
- name: Create Coverage Badges
24+
uses: jaywcjlove/coverage-badges-cli@main
25+
with:
26+
style: flat
27+
source: coverage/coverage-summary.json
28+
output: dist/badges.svg
29+
2030
- name: Generate Contributors Images
2131
uses: jaywcjlove/github-action-contributors@main
2232
with:

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
whereis
22
===
33

4-
[![ci](https://github.com/jaywcjlove/github-actions/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/github-actions/actions/workflows/ci.yml)
4+
[![CI](https://github.com/jaywcjlove/github-actions/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/github-actions/actions/workflows/ci.yml)
5+
[![npm version](https://img.shields.io/npm/v/@wcjiang/whereis.svg)](https://www.npmjs.com/package/@wcjiang/whereis)
6+
[![Coverage Status](https://jaywcjlove.github.io/whereis/coverage/badges.svg)](https://jaywcjlove.github.io/whereis/coverage/lcov-report/)
57

68
Like the unix `which` utility.
79

0 commit comments

Comments
 (0)