File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 3636 run : npm ci
3737
3838 - name : Run tests
39- run : npm run test -- --ci --runInBand
39+ run : npm run coverage -- --ci --runInBand
40+
41+ - name : Upload code coverage
42+ uses : coverallsapp/github-action@master
43+ with :
44+ github-token : ${{ secrets.GITHUB_TOKEN }}
4045
4146 test-earliest-node-engine-support :
4247 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 55[ ![ Version] [ version-badge ]] [ version-link ]
66[ ![ npm] [ npm-badge ]] [ npm-link ]
77[ ![ Test CI] [ ci-badge ]] [ ci-link ]
8+ [ ![ Coverage Status] [ coverage-badge ]] [ coverage-link ]
89[ ![ License] [ license-badge ]] [ license-link ]
910[ ![ Docs] [ docs-badge ]] [ docs-link ]
1011
@@ -217,6 +218,8 @@ See [the contributing guide](./.github/contributing.md) for detailed instruction
217218[ npm-link ] : https://www.npmjs.com/package/@opensea/stream-js
218219[ ci-badge ] : https://github.com/ProjectOpenSea/stream-js/actions/workflows/ci.yml/badge.svg
219220[ ci-link ] : https://github.com/ProjectOpenSea/stream-js/actions/workflows/ci.yml
221+ [ coverage-badge ] : https://coveralls.io/repos/github/ProjectOpenSea/stream-js/badge.svg?branch=main
222+ [ coverage-link ] : https://coveralls.io/github/ProjectOpenSea/stream-js?branch=main
220223[ license-badge ] : https://img.shields.io/github/license/ProjectOpenSea/stream-js
221224[ license-link ] : https://github.com/ProjectOpenSea/stream-js/blob/main/LICENSE
222225[ docs-badge ] : https://img.shields.io/badge/Stream.js-documentation-informational
Original file line number Diff line number Diff line change 1919 "scripts" : {
2020 "build" : " microbundle" ,
2121 "check-types" : " tsc --noEmit" ,
22+ "coverage" : " npm run test -- --coverage --collectCoverageFrom='./src/**'" ,
2223 "dev" : " microbundle watch" ,
2324 "eslint" : " eslint . --max-warnings 0 --ext .js,.ts --fix" ,
2425 "lint:check" : " concurrently \" npm run check-types\" \" npm run eslint\" \" npm run prettier:check\" \" npm run prettier:check:package.json\" " ,
You can’t perform that action at this time.
0 commit comments