Skip to content

Commit 2911f97

Browse files
committed
workflow: update code coverage check
1 parent 99e2be8 commit 2911f97

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ jobs:
1919
npm run lint
2020
npm run build
2121
npm run test
22+
- name: Upload coverage to Codecov
23+
uses: codecov/codecov-action@v3

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ module.exports = {
1717
coveragePathIgnorePatterns: ['/node_modules/', '/test/helpers/'],
1818
coverageDirectory: './coverage/',
1919
collectCoverage: true,
20+
coverageReporters: ['text', 'cobertura'],
2021
};

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"scripts": {
1717
"build": "node scripts/build.js",
1818
"lint": "eslint --ext .js,.ts, ./src",
19-
"test": "jest && codecov",
19+
"test": "jest",
2020
"release": "node scripts/release.js",
2121
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
2222
"format": "prettier --write \"src/**/*.ts\"",
@@ -63,7 +63,6 @@
6363
"@typescript-eslint/eslint-plugin": "^5.50.0",
6464
"@typescript-eslint/parser": "^5.48.1",
6565
"chalk": "^4.1.2",
66-
"codecov": "^3.8.1",
6766
"conventional-changelog-cli": "^2.2.2",
6867
"enquirer": "^2.3.6",
6968
"eslint": "^8.33.0",

0 commit comments

Comments
 (0)