Skip to content

Commit

Permalink
Fix codecov upload
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmiklos committed Mar 28, 2022
1 parent 18865d7 commit 37af31b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fetch-depth: 2
- run: npm install
- run: npm run build
- run: npm test
- run: npm run test -- --code-coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
6 changes: 3 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ module.exports = function (config) {
suppressAll: true // removes the duplicated traces
},
coverageReporter: {
dir: require('path').join(__dirname, './coverage/interview-project'),
dir: require('path').join(__dirname, './coverage'),
subdir: '.',
reporters: [
// { type: 'html' },
{ type: 'html' },
{ type: 'text-summary' }
]
},
reporters: ['progress', 'coverage'],
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
Expand Down
28 changes: 4 additions & 24 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"jasmine-core": "~4.0.0",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "^2.1.1",
"karma-coverage": "^2.2.0",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"typescript": "~4.6.2"
Expand Down

0 comments on commit 37af31b

Please sign in to comment.