Skip to content

Commit

Permalink
workflow: update code coverage check
Browse files Browse the repository at this point in the history
  • Loading branch information
hujiulong committed Jan 14, 2025
1 parent 99e2be8 commit 2911f97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ jobs:
npm run lint
npm run build
npm run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ module.exports = {
coveragePathIgnorePatterns: ['/node_modules/', '/test/helpers/'],
coverageDirectory: './coverage/',
collectCoverage: true,
coverageReporters: ['text', 'cobertura'],
};
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"build": "node scripts/build.js",
"lint": "eslint --ext .js,.ts, ./src",
"test": "jest && codecov",
"test": "jest",
"release": "node scripts/release.js",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"format": "prettier --write \"src/**/*.ts\"",
Expand Down Expand Up @@ -63,7 +63,6 @@
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/parser": "^5.48.1",
"chalk": "^4.1.2",
"codecov": "^3.8.1",
"conventional-changelog-cli": "^2.2.2",
"enquirer": "^2.3.6",
"eslint": "^8.33.0",
Expand Down

0 comments on commit 2911f97

Please sign in to comment.