Skip to content

Commit 1774041

Browse files
committed
chore: Update coverage badge.
1 parent c6b7591 commit 1774041

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
- run: npm run build
1818
- run: npm run doc
1919
- run: npm run test:coverage
20+
- run: npm i coverage-badges-cli -g
21+
- run: coverage-badges
22+
- run: cp -rp coverage build
2023

2124
- run: npm install @jsdevtools/npm-publish -g
2225
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
@@ -61,7 +64,3 @@ jobs:
6164
6265
${{ steps.changelog.outputs.changelog }}
6366
64-
- name: Coveralls
65-
uses: coverallsapp/github-action@master
66-
with:
67-
github-token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Run Web
22
===
33

4-
[![Build & Deploy](https://github.com/uiwjs/react-run-web/actions/workflows/ci.yml/badge.svg)](https://github.com/uiwjs/react-run-web/actions/workflows/ci.yml) [![Coverage Status](https://coveralls.io/repos/github/uiwjs/react-run-web/badge.svg?branch=main)](https://coveralls.io/github/uiwjs/react-run-web?branch=main) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-run-web/file/README.md) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-run-web)](https://www.npmjs.com/package/@uiw/react-run-web) [![npm version](https://img.shields.io/npm/v/@uiw/react-run-web.svg)](https://www.npmjs.com/package/@uiw/react-run-web)
4+
[![Build & Deploy](https://github.com/uiwjs/react-run-web/actions/workflows/ci.yml/badge.svg)](https://github.com/uiwjs/react-run-web/actions/workflows/ci.yml) [![Coverage Status](https://uiwjs.github.io/react-run-web/coverage/badges.svg)](https://uiwjs.github.io/react-run-web/coverage/lcov-report) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-run-web/file/README.md) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-run-web)](https://www.npmjs.com/package/@uiw/react-run-web) [![npm version](https://img.shields.io/npm/v/@uiw/react-run-web.svg)](https://www.npmjs.com/package/@uiw/react-run-web)
55

66
Online Code Editor for Rapid Web Development, [Preview Demo](https://uiwjs.github.io/react-run-web#/?html=<div>Hello%20World</div>&js=console.log('hello%20world')&css=div%20{%20color:%20red;}).
77

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
"prettier --write"
3838
]
3939
},
40+
"jest": {
41+
"coverageReporters": [
42+
"lcov",
43+
"json-summary"
44+
]
45+
},
4046
"peerDependencies": {
4147
"@babel/runtime": ">=7.10.0",
4248
"react": ">=16.9.0",

0 commit comments

Comments
 (0)