Skip to content

Commit

Permalink
test: adding components to separate the codecov reports
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Sankeerth <[email protected]>
  • Loading branch information
Sai Sankeerth committed Jan 3, 2024
1 parent 5dade89 commit 2e79b93
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/report-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ jobs:
uses: codecov/[email protected]
with:
directory: ./reports/coverage

flags: js

- name: Upload TS Coverage Reports to Codecov
uses: codecov/[email protected]
with:
directory: ./reports/ts-coverage
flags: ts

- name: Fix filesystem paths in generated reports
if: always()
Expand Down
32 changes: 32 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,35 @@ coverage:
patch:
default:
informational: true
# js:
# target: auto
# flags:
# - js
# ts:
# informational: true
# target: auto
# flags:
# - ts

component_management:
individual_components:
- component_id: js # this is an identifier that should not be changed
name: js # this is a display name, and can be changed freely
statuses:
- type: project
target: auto
threshold: 1%
- type: patch
target: 80%
paths:
- "src/**/*.js"
- component_id: ts
statuses:
- type: project
target: auto
threshold: 1%
- type: patch
target: 90%
name: ts
paths:
- "src/**/*.ts"

0 comments on commit 2e79b93

Please sign in to comment.