mirror of
https://github.com/desktop/desktop
synced 2024-08-27 12:11:00 +00:00
Merge pull request #6150 from desktop/codecov-granularity
codecov granularity
This commit is contained in:
commit
a3036a6cdc
33
.codecov.yml
33
.codecov.yml
|
@ -1,8 +1,3 @@
|
|||
codecov:
|
||||
# no notifications set up
|
||||
notify:
|
||||
require_ci_to_pass: yes
|
||||
|
||||
coverage:
|
||||
precision: 1
|
||||
round: nearest
|
||||
|
@ -11,15 +6,29 @@ coverage:
|
|||
|
||||
status:
|
||||
project:
|
||||
default:
|
||||
# compares coverage to the base branch
|
||||
lib-git:
|
||||
target: auto
|
||||
# if it drops by 20%, send a fail status
|
||||
threshold: 20%
|
||||
# only send statuses for prs, not all commits
|
||||
threshold: 5%
|
||||
base: pr
|
||||
# only include coverage in "app/src/" folder
|
||||
paths: 'app/src/'
|
||||
paths: 'app/src/lib/git'
|
||||
lib-app:
|
||||
target: auto
|
||||
threshold: 5%
|
||||
base: pr
|
||||
paths:
|
||||
- 'app/src/lib/stores'
|
||||
- 'app/src/lib/dispatcher'
|
||||
- 'app/src/lib/databases'
|
||||
models:
|
||||
target: auto
|
||||
threshold: 5%
|
||||
base: pr
|
||||
paths: 'app/src/models'
|
||||
ui-components:
|
||||
target: auto
|
||||
threshold: 5%
|
||||
base: pr
|
||||
paths: 'app/src/ui'
|
||||
patch: no
|
||||
changes: no
|
||||
|
||||
|
|
Loading…
Reference in a new issue