Skip to content

Commit

Permalink
chore: create coerage badges.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 22, 2023
1 parent 84a16ce commit 3306f20
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ jobs:
- run: npm run test
- run: npm install [email protected] -g
- run: idoc -s "Local IP URL {{version}}"

- 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: Deploy Website
uses: peaceiris/actions-gh-pages@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
coverage

npm-debug.log*
lerna-debug.log
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@
"license": "MIT",
"homepage": "https://jaywcjlove.github.io/local-ip-url",
"scripts": {
"test": "jest"
"test": "jest",
"coverage": "jest --coverage"
},
"repository": {
"type": "git",
"url": "https://github.com/jaywcjlove/local-ip-url.git"
},
"jest": {
"coverageReporters": [
"lcov",
"json-summary"
]
},
"files": [
"index.js",
"index.d.ts",
Expand Down

0 comments on commit 3306f20

Please sign in to comment.