|
1 | 1 | # https://docs.codecov.com/docs/codecov-yaml |
2 | 2 |
|
3 | | -ignore: |
4 | | - - "Dotnet.Samples.AspNetCore.WebApi/Data" |
5 | | - - "Dotnet.Samples.AspNetCore.WebApi/Enums" |
6 | | - - "Dotnet.Samples.AspNetCore.WebApi/Migrations" |
7 | | - - "Dotnet.Samples.AspNetCore.WebApi/Models" |
8 | | - - "Dotnet.Samples.AspNetCore.WebApi/Properties" |
9 | | - - "Dotnet.Samples.AspNetCore.WebApi/Utilities" |
10 | | - - "Dotnet.Samples.AspNetCore.WebApi/Program.cs" |
11 | | - - "Dotnet.Samples.AspNetCore.WebApi.Tests" |
12 | | - |
13 | 3 | coverage: |
| 4 | + |
| 5 | + #https://docs.codecov.com/docs/commit-status |
14 | 6 | status: |
15 | 7 | project: |
| 8 | + default: |
| 9 | + target: 80% # Default target for all components |
| 10 | + threshold: 10% # Default threshold for all components |
| 11 | + if_not_found: success # If no coverage report is found, the status will be success |
| 12 | + if_ci_failed: error # If the CI failed, the status will be error |
| 13 | + |
| 14 | + # Components inherit the default settings |
16 | 15 | controllers: |
17 | 16 | paths: |
18 | 17 | - "Dotnet.Samples.AspNetCore.WebApi/Controllers/" |
19 | 18 | services: |
20 | 19 | paths: |
21 | 20 | - "Dotnet.Samples.AspNetCore.WebApi/Services/" |
| 21 | + |
22 | 22 | patch: |
23 | 23 | default: |
24 | | - informational: true |
| 24 | + informational: false # If the patch coverage is not found, the status will be informational |
| 25 | + target: 80% # Default target for all components |
| 26 | + threshold: 10% # Default threshold for all components |
| 27 | + |
| 28 | +ignore: |
| 29 | + - "Dotnet.Samples.AspNetCore.WebApi/Data" |
| 30 | + - "Dotnet.Samples.AspNetCore.WebApi/Enums" |
| 31 | + - "Dotnet.Samples.AspNetCore.WebApi/Migrations" |
| 32 | + - "Dotnet.Samples.AspNetCore.WebApi/Models" |
| 33 | + - "Dotnet.Samples.AspNetCore.WebApi/Properties" |
| 34 | + - "Dotnet.Samples.AspNetCore.WebApi/Utilities" |
| 35 | + - "Dotnet.Samples.AspNetCore.WebApi/Program.cs" |
| 36 | + - "Dotnet.Samples.AspNetCore.WebApi.Tests" |
0 commit comments