diff --git a/.circleci/config.yml b/.circleci/config.yml index 8d17f24..dcc89c9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,6 +8,9 @@ jobs: - run: name: dep install command: npm install + - run: + name: install codecov + command: npm install -g codecov - run: name: test - command: npm test + command: npm test && codecov diff --git a/.gitignore b/.gitignore index 3c3629e..ba2a97b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +coverage diff --git a/README.md b/README.md index 00e6cdf..d95a7fd 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Embeddable React Widget +[![CircleCI](https://circleci.com/gh/seriousben/embeddable-react-widget.svg?style=svg)](https://circleci.com/gh/seriousben/embeddable-react-widget) +[![codecov](https://codecov.io/gh/seriousben/embeddable-react-widget/branch/master/graph/badge.svg)](https://codecov.io/gh/seriousben/embeddable-react-widget) + Easy creation of an embeddable widget. ## Goal diff --git a/package.json b/package.json index bbfa611..7bf78e2 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,8 @@ ] }, "jest": { + "coverageDirectory": "./coverage/", + "collectCoverage": true, "transform": { "^.+\\.(js|jsx|mjs)$": "/node_modules/babel-jest", "^.+\\.(css|scss)$": "/jest/cssTransform.js",