Skip to content

Commit

Permalink
build: uploading reports to Codecov using the Codecov Action
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Nov 23, 2024
1 parent 5d06b5a commit be209ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ jobs:
- run: npm run lint
- run: npm run build
- run: npm test
- run: npm run test:coverage
- uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
"prepare": "husky install",
"release": "npm run clean && npm run lint && npm run build && npm run compress && npm test",
"start": "npm run dev",
"test": "cross-env NODE_ENV=test karma start test/karma.conf.js",
"test:coverage": "cat coverage/lcov.info | codecov"
"test": "cross-env NODE_ENV=test karma start test/karma.conf.js"
},
"dependencies": {
"blueimp-canvas-to-blob": "^3.29.0",
Expand Down

0 comments on commit be209ec

Please sign in to comment.