Skip to content

Commit

Permalink
👷 fix cov script (webclipper#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondYuan authored Mar 28, 2021
1 parent cd47333 commit eebc4a2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
- name: Install Dependencies
run: npm install
- run: npm run lint
- run: npm run test --collectCoverage
- run: npm run cov
- uses: codecov/codecov-action@v1
6 changes: 6 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
comment: # this is a top-level key
layout: 'reach, diff, flags, files'
behavior: default
require_changes: false # if true: only post the comment if coverage changes
require_base: no # [yes :: must have a base report to post]
require_head: yes # [yes :: must have a head report to post]
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testEnvironment: 'node',
coverageReporters: ['json', 'html'],
verbose: true,
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Universal open source web clipper for Notion,OneNote,Joplin,Yuque,Bear,Github and more notes.",
"scripts": {
"test": "jest",
"cov": "jest --coverage",
"dev": "NODE_ENV=development webpack --config webpack/webpack.dev.js --watch",
"dev:ff": "TARGET_BROWSER=Firefox NODE_ENV=development webpack --config webpack/webpack.dev.js --watch",
"release": "node script/ci.js",
Expand Down

0 comments on commit eebc4a2

Please sign in to comment.