Skip to content

Commit

Permalink
Replace codecov with orbs
Browse files Browse the repository at this point in the history
We can reduce npm dependencies by using orbs provided by CircleCI.
  • Loading branch information
hackerwins committed Sep 22, 2020
1 parent 01d58bc commit ddfdf93
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 117 deletions.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
version: 2.1
orbs:
codecov: codecov/[email protected]
jobs:
build:
docker:
Expand All @@ -12,4 +14,5 @@ jobs:
- run: npm run lint
- run: npm run build
- run: npm test
- run: npm run codecov
- codecov/upload:
file: coverage/lcov.info
114 changes: 1 addition & 113 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"test": "karma start karma.conf.js --single-run",
"test:local": "karma start karma.conf.js --single-run --testRPCAddr=http://localhost:8080",
"test:watch": "karma start karma.conf.js",
"lint": "eslint . --fix --ext .ts",
"codecov": "cat coverage/lcov.info | codecov"
"lint": "eslint . --fix --ext .ts"
},
"repository": {
"type": "git",
Expand All @@ -34,7 +33,6 @@
"@typescript-eslint/eslint-plugin": "^3.9.1",
"@typescript-eslint/parser": "^3.9.1",
"chai": "^4.2.0",
"codecov": "^3.7.2",
"eslint": "^7.7.0",
"eslint-plugin-prettier": "^3.1.4",
"husky": "^4.2.5",
Expand Down

0 comments on commit ddfdf93

Please sign in to comment.