Skip to content

Commit

Permalink
build: add coveralls as test coverage service
Browse files Browse the repository at this point in the history
  • Loading branch information
wtho committed Jun 22, 2021
1 parent 3c6fcff commit 3b9bb35
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 53 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@ jobs:
run: |
npm ci
npm run build
npm test
npm test -- --collectCoverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<p align="center">
<a href="https://www.npmjs.com/package/avro-decorators"><img src="https://img.shields.io/npm/v/avro-decorators/latest.svg?style=flat-square" alt="NPM Version" /></a>
<a href="https://github.com/wtho/avro-decorators/actions/workflows/test.yml"><img src="https://img.shields.io/github/workflow/status/wtho/avro-decorators/test/main?style=flat-square" alt="CI Tests Pipeline" /></a>
<a href="https://coveralls.io/github/wtho/avro-decorators?branch=main"><img src="https://img.shields.io/coveralls/github/wtho/avro-decorators?style=flat-square" alt="Test Coverage" /></a>
<a href="https://github.com/wtho/avro-decorators/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/avro-decorators?style=flat-square" alt="GitHub license" /></a>
</p>

Expand Down
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Config } from '@jest/types'
const config: Config.InitialOptions = {
preset: 'ts-jest',
testEnvironment: 'node',
coverageReporters: ['html'],
coverageReporters: ['html', 'lcov'],
// do not print console from tested code
silent: true,
}
Expand Down
102 changes: 51 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b9bb35

Please sign in to comment.