Skip to content

Commit

Permalink
Polish CodeCov related config (#3358)
Browse files Browse the repository at this point in the history
  • Loading branch information
LearningGp committed Mar 5, 2024
1 parent e945ffc commit ffe0d1e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
36 changes: 35 additions & 1 deletion .codecov.yml
Expand Up @@ -5,9 +5,43 @@ ignore:
- "sentinel-transport/.*"
- "sentinel-core/src/main/java/com/alibaba/csp/sentinel/eagleeye/*"
comment: # this is a top-level key
layout: " diff, flags, files"
layout: " condensed_header, diff, condensed_files, components, condensed_footer"
behavior: default
require_changes: false # if true: only post the comment if coverage changes
require_base: false # [true :: must have a base report to post]
require_head: true # [true :: must have a head report to post]
hide_project_coverage: false # [true :: only show coverage on the git diff]
component_management:
individual_components:
- component_id: sentinel-adapter # this is an identifier that should not be changed
name: sentinel-adapter # this is a display name, and can be changed freely
paths:
- sentinel-adapter
- component_id: sentinel-cluster
name: sentinel-cluster
paths:
- sentinel-cluster
- component_id: sentinel-core
name: sentinel-core
paths:
- sentinel-core
- component_id: sentinel-extension
name: sentinel-extension
paths:
- sentinel-extension
- component_id: sentinel-logging
name: sentinel-logging
paths:
- sentinel-logging
coverage:
status:
project:
default:
target: auto
threshold: 0.5%
base: auto
patch:
default:
target: 60%
threshold: 1%
base: auto
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Expand Up @@ -49,5 +49,4 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: alibaba/Sentinel
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit ffe0d1e

Please sign in to comment.