ci: add code coverage report

This commit is contained in:
curbengh 2019-12-29 04:12:19 +00:00
parent 60642c8048
commit fa6f514a05
No known key found for this signature in database
GPG Key ID: 21EA847C35D6E034
3 changed files with 4 additions and 1 deletions

View File

@ -21,3 +21,5 @@ after_script:
snyk protect; snyk protect;
snyk monitor; snyk monitor;
fi fi
- npm install codecov
- codecov

View File

@ -2,6 +2,7 @@
[![npm version](https://badge.fury.io/js/hexo-yam.svg)](https://www.npmjs.com/package/hexo-yam) [![npm version](https://badge.fury.io/js/hexo-yam.svg)](https://www.npmjs.com/package/hexo-yam)
[![Build Status](https://travis-ci.com/curbengh/hexo-yam.svg?branch=master)](https://travis-ci.com/curbengh/hexo-yam) [![Build Status](https://travis-ci.com/curbengh/hexo-yam.svg?branch=master)](https://travis-ci.com/curbengh/hexo-yam)
[![codecov](https://codecov.io/gh/curbengh/hexo-yam/branch/master/graph/badge.svg)](https://codecov.io/gh/curbengh/hexo-yam)
[![NPM Dependencies](https://david-dm.org/curbengh/hexo-yam.svg)](https://david-dm.org/curbengh/hexo-yam) [![NPM Dependencies](https://david-dm.org/curbengh/hexo-yam.svg)](https://david-dm.org/curbengh/hexo-yam)
[![Known Vulnerabilities](https://snyk.io/test/npm/hexo-yam/badge.svg)](https://snyk.io/test/npm/hexo-yam) [![Known Vulnerabilities](https://snyk.io/test/npm/hexo-yam/badge.svg)](https://snyk.io/test/npm/hexo-yam)
[![Greenkeeper badge](https://badges.greenkeeper.io/curbengh/hexo-yam.svg)](https://greenkeeper.io/) [![Greenkeeper badge](https://badges.greenkeeper.io/curbengh/hexo-yam.svg)](https://greenkeeper.io/)

View File

@ -49,7 +49,7 @@
"jest": { "jest": {
"clearMocks": true, "clearMocks": true,
"collectCoverage": true, "collectCoverage": true,
"coverageDirectory": "coverage", "coverageDirectory": "./coverage/",
"testEnvironment": "node" "testEnvironment": "node"
}, },
"greenkeeper": { "greenkeeper": {