configure codecov

This commit is contained in:
Rene Haas
2022-08-19 17:39:08 +02:00
parent a6b40e0231
commit a88102de69
6 changed files with 41 additions and 20 deletions
+16
View File
@@ -0,0 +1,16 @@
codecov: require_ci_to_pass: no;
notify: wait_for_ci: no;
coverage:
status:
project: off
patch: off
flag_management:
default_rules:
carryforward: true
individual_flags:
- name: overlayscrollbars
paths:
- packages/overlayscrollbars
+9 -7
View File
@@ -23,13 +23,15 @@ jobs:
run: npm ci --install-links
- name: Run Jest
run: npm run jest
- uses: codecov/codecov-action@v3
with:
flags: unit
files: "**/jest/coverage*.json"
- name: Run Playwright
run: xvfb-run npm run playwright
- uses: codecov/codecov-action@v3
- name: Upload coverage reports
uses: codecov/codecov-action@v3
with:
flags: ui
files: "**/playwright/coverage*.json"
flags: overlayscrollbars,unit
files: "overlayscrollbars/**/jest/coverage*.json"
- name: Upload coverage reports
uses: codecov/codecov-action@v3
with:
flags: overlayscrollbars,ui
files: "overlayscrollbars/**/playwright/coverage*.json"