Skip to content

Commit 3c95271

Browse files
author
Dustin Popp
authored
ci: add test coverage reporting and tests on node 10 and 12 (#66)
adds code coverage reporting using `nyc`, uses `codecov` to track coverage * build: update dependencies to remove vulnerabilities * docs: add coverage badge to readme
1 parent 8eecc2d commit 3c95271

File tree

5 files changed

+3377
-1799
lines changed

5 files changed

+3377
-1799
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ dist
77
.validateignore
88
.idea/
99
bin/
10+
.nyc_output/
11+
coverage/

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
language: node_js
22
node_js:
3-
- '8'
3+
- 8
4+
- 10
5+
- 12
46
script:
57
- npm run test-travis
8+
after_success:
9+
- npm run report-coverage
610
deploy:
711
- provider: script
812
skip_cleanup: true
913
script: npx semantic-release
1014
on:
11-
branch: master
15+
node: 12

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[![Build Status](https://travis-ci.com/IBM/openapi-validator.svg?branch=master)](https://travis-ci.com/IBM/openapi-validator)
22
[![npm-version](https://img.shields.io/npm/v/ibm-openapi-validator.svg)](https://www.npmjs.com/package/ibm-openapi-validator)
3+
[![codecov](https://codecov.io/gh/ibm/openapi-validator/branch/master/graph/badge.svg)](https://codecov.io/gh/ibm/openapi-validator)
34
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
45
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
56
[![CLA assistant](https://cla-assistant.io/readme/badge/ibm/openapi-validator)](https://cla-assistant.io/ibm/openapi-validator)

0 commit comments

Comments
 (0)