Skip to content

Commit fc588f2

Browse files
jonaslagoniderberg
andauthored
chore: add test coverage badges (#120)
Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
1 parent 848aca2 commit fc588f2

File tree

5 files changed

+803
-2257
lines changed

5 files changed

+803
-2257
lines changed

.github/workflows/coverall.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request_target:
6+
types: [opened, reopened, synchronize, ready_for_review]
7+
name: Check test coverage
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 14
18+
- name: npm install, run test
19+
run: |
20+
npm install
21+
npm run test
22+
- name: Coveralls
23+
uses: coverallsapp/github-action@v1.1.2
24+
with:
25+
github-token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<em>The official SDK for generating data models from JSON Schema and AsyncAPI spec</em>
99
</p>
1010

11+
[![Coverage Status](https://coveralls.io/repos/github/asyncapi/generator-model-sdk/badge.svg?branch=master)](https://coveralls.io/github/asyncapi/generator-model-sdk?branch=master)
1112
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
1213
[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)
1314
<!-- ALL-CONTRIBUTORS-BADGE:END -->

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// eslint-disable-next-line no-undef
22
module.exports = {
33
coverageReporters: [
4-
'json',
4+
'json-summary',
55
'lcov',
66
'text'
77
],

0 commit comments

Comments
 (0)