Skip to content

Commit 165b406

Browse files
authored
Add codecov (#7)
* add codecov * add codecov to circleci * fix dependency version
1 parent 409afd9 commit 165b406

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
steps:
5151
- attach_workspace: *attach_environment
5252
- run: yarn run test
53+
- run: yarn codecov
5354

5455
workflows:
5556
version: 2

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules
1+
node_modules
2+
coverage

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
},
2525
"devDependencies": {
2626
"@sequencework/eslint-config": "^0.0.7",
27+
"codecov": "3.1.0",
2728
"dtslint": "^0.3.0",
2829
"eslint": "5.4.0",
2930
"husky": "1.0.0-rc.13",
@@ -37,6 +38,9 @@
3738
"pre-commit": "lint-staged"
3839
}
3940
},
41+
"jest": {
42+
"collectCoverage": true
43+
},
4044
"prettier": {
4145
"printWidth": 80,
4246
"tabWidth": 2,

yarn.lock

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ argparse@^1.0.7:
242242
dependencies:
243243
sprintf-js "~1.0.2"
244244

245+
argv@^0.0.2:
246+
version "0.0.2"
247+
resolved "https://registry.yarnpkg.com/argv/-/argv-0.0.2.tgz#ecbd16f8949b157183711b1bda334f37840185ab"
248+
245249
arr-diff@^2.0.0:
246250
version "2.0.0"
247251
resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf"
@@ -717,6 +721,16 @@ code-point-at@^1.0.0:
717721
version "1.1.0"
718722
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
719723

724+
codecov@^3.1.0:
725+
version "3.1.0"
726+
resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.1.0.tgz#340bd968d361f256976b5af782dd8ba9f82bc849"
727+
dependencies:
728+
argv "^0.0.2"
729+
ignore-walk "^3.0.1"
730+
js-yaml "^3.12.0"
731+
request "^2.87.0"
732+
urlgrey "^0.4.4"
733+
720734
collection-visit@^1.0.0:
721735
version "1.0.0"
722736
resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0"
@@ -2376,7 +2390,7 @@ js-tokens@^3.0.0, js-tokens@^3.0.2:
23762390
version "4.0.0"
23772391
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
23782392

2379-
js-yaml@^3.11.0, js-yaml@^3.7.0, js-yaml@^3.9.0:
2393+
js-yaml@^3.11.0, js-yaml@^3.12.0, js-yaml@^3.7.0, js-yaml@^3.9.0:
23802394
version "3.12.0"
23812395
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1"
23822396
dependencies:
@@ -4076,6 +4090,10 @@ urix@^0.1.0:
40764090
version "0.1.0"
40774091
resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"
40784092

4093+
urlgrey@^0.4.4:
4094+
version "0.4.4"
4095+
resolved "https://registry.yarnpkg.com/urlgrey/-/urlgrey-0.4.4.tgz#892fe95960805e85519f1cd4389f2cb4cbb7652f"
4096+
40794097
use@^3.1.0:
40804098
version "3.1.1"
40814099
resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"

0 commit comments

Comments
 (0)