Skip to content

Commit e78fc27

Browse files
committed
ci: upload tests coverage to codecov.io
1 parent b862ae2 commit e78fc27

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

.circleci/config.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1-
version: 2
1+
version: 2.1
2+
orbs:
3+
codecov: codecov/codecov@1.1.3
4+
workflows:
5+
version: 2
6+
build-deploy:
7+
jobs:
8+
- build:
9+
filters:
10+
branches:
11+
only:
12+
- master
13+
- next
214
jobs:
315
build:
416
docker:
517
- image: 'circleci/node:latest'
6-
filters:
7-
branches:
8-
only:
9-
- master
10-
- next
1118
steps:
1219
- checkout
1320
- restore_cache:
@@ -22,6 +29,10 @@ jobs:
2229
- run:
2330
name: test
2431
command: npm run test
32+
- store_artifacts:
33+
path: coverage
34+
- codecov/upload:
35+
file: coverage/coverage-final.json
2536
- run:
2637
name: build
2738
command: npm run build

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"watch": "yarn build -w",
1717
"lint": "eslint src --ext .ts",
1818
"start": "node ./lib/bin.js",
19-
"release": "export $(cat .env | xargs) && semantic-release"
19+
"release": "semantic-release",
20+
"release:env": "export $(cat .env | xargs) && semantic-release"
2021
},
2122
"nyc": {
2223
"extension": [
@@ -30,7 +31,7 @@
3031
"src"
3132
],
3233
"reporter": [
33-
"html"
34+
"json"
3435
],
3536
"all": true
3637
},

0 commit comments

Comments
 (0)