-
Notifications
You must be signed in to change notification settings - Fork 6
/
codecov.yml
76 lines (70 loc) · 1.68 KB
/
codecov.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
coverage:
status:
project:
default:
target: 50% #overall project/ repo coverage
patch:
service:
target: 41.67%
threshold: 0.01%
flags:
- service
controller:
target: auto
flags:
- controller
unit:
informational: true
target: auto
flags:
- unit
javascript:
target: 80%
flags:
- javascript
github_checks: #does not work if flags are configured
annotations: true
comment:
layout: "newheader, diff, flags, components, files"
require_changes: false # if true: only post the comment if coverage changes
require_base: false # [yes :: must have a base report to post]
require_head: true # [yes :: must have a head report to post]
show_carryforward_flags: true
show_critical_paths: true #new option to labeled critical files
hide_comment_details: true #collapse all the "detailed info" for the PR comment
profiling:
critical_files_paths:
- app/Services/*
- resources/js/classes/*
- app/Models/Charge.php
flags:
service:
carryforward: true
paths:
- app/Services
controller:
carryforward: true
paths:
- app/Http/Controllers
unit:
carryforward: true
paths:
- app/Models
javascript:
carryforward: false
paths:
- resources/js
component_management:
individual_components:
- component_id: "backend"
name: "backend"
paths:
- ".*"
flag_regexes: # List of lags to be included in the component.
- "unit"
- "controller"
- "service"
codecov:
notify:
manual_trigger: true
notify_error: true