Skip to content

Commit

Permalink
feat(codecov): enhance the codecov report (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
borodovisin authored Feb 14, 2022
1 parent 6250688 commit 8ff4ea7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
13 changes: 13 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
coverage:
status:
project:
default:
target: 50%
client:
target: 50%
flags:
- client
server:
target: 100%
flags:
- server
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
- name: ▶️ Run build script
run: npm run build

- name: ⬆️ Upload karma coverage report
- name: ⬆️ Upload client coverage report
uses: codecov/codecov-action@v2
with:
directory: ./coverage/karma
flags: karma
flags: client

- name: ⬆️ Upload jest coverage report
- name: ⬆️ Upload server coverage report
uses: codecov/codecov-action@v2
with:
directory: ./coverage/jest
flags: jest
flags: server
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"webpack": "babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/webpack --progress",
"jest": "jest test/server --env=node --no-cache --collectCoverageFrom='server/' --coverageDirectory='coverage/jest' --coverage --verbose --runInBand --silent=false",
"prepublishOnly": "npm run babel",
"postpublish": "rm -rf ./server && git checkout ./server"
"postpublish": "rm -rf ./server && git checkout ./server",
"validate-codecov": "curl --data-binary @.github/codecov.yml https://codecov.io/validate"
},
"files": [
"dist/",
Expand Down

0 comments on commit 8ff4ea7

Please sign in to comment.