Skip to content

Commit

Permalink
bring back coverage (#294)
Browse files Browse the repository at this point in the history
* bring back coverage

* add script and only count for src files

* lint
  • Loading branch information
ryanio authored Jun 9, 2023
1 parent 0dbbaa8 commit dc5de69
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ jobs:
run: npm ci

- name: Run tests
run: npm run test -- --ci --runInBand
run: npm run coverage -- --ci --runInBand

- name: Upload code coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

test-earliest-node-engine-support:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![Version][version-badge]][version-link]
[![npm][npm-badge]][npm-link]
[![Test CI][ci-badge]][ci-link]
[![Coverage Status][coverage-badge]][coverage-link]
[![License][license-badge]][license-link]
[![Docs][docs-badge]][docs-link]

Expand Down Expand Up @@ -217,6 +218,8 @@ See [the contributing guide](./.github/contributing.md) for detailed instruction
[npm-link]: https://www.npmjs.com/package/@opensea/stream-js
[ci-badge]: https://github.com/ProjectOpenSea/stream-js/actions/workflows/ci.yml/badge.svg
[ci-link]: https://github.com/ProjectOpenSea/stream-js/actions/workflows/ci.yml
[coverage-badge]: https://coveralls.io/repos/github/ProjectOpenSea/stream-js/badge.svg?branch=main
[coverage-link]: https://coveralls.io/github/ProjectOpenSea/stream-js?branch=main
[license-badge]: https://img.shields.io/github/license/ProjectOpenSea/stream-js
[license-link]: https://github.com/ProjectOpenSea/stream-js/blob/main/LICENSE
[docs-badge]: https://img.shields.io/badge/Stream.js-documentation-informational
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"scripts": {
"build": "microbundle",
"check-types": "tsc --noEmit",
"coverage": "npm run test -- --coverage --collectCoverageFrom='./src/**'",
"dev": "microbundle watch",
"eslint": "eslint . --max-warnings 0 --ext .js,.ts --fix",
"lint:check": "concurrently \"npm run check-types\" \"npm run eslint\" \"npm run prettier:check\" \"npm run prettier:check:package.json\"",
Expand Down

0 comments on commit dc5de69

Please sign in to comment.