Skip to content

Commit 2f91982

Browse files
committed
chore(ci): adjust Codecov targets and thresholds
1 parent d809aa0 commit 2f91982

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

codecov.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,36 @@
11
# https://docs.codecov.com/docs/codecov-yaml
22

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-
133
coverage:
4+
5+
#https://docs.codecov.com/docs/commit-status
146
status:
157
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
1615
controllers:
1716
paths:
1817
- "Dotnet.Samples.AspNetCore.WebApi/Controllers/"
1918
services:
2019
paths:
2120
- "Dotnet.Samples.AspNetCore.WebApi/Services/"
21+
2222
patch:
2323
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

Comments
 (0)