-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcodecov.yml
More file actions
58 lines (54 loc) · 1.46 KB
/
Copy pathcodecov.yml
File metadata and controls
58 lines (54 loc) · 1.46 KB
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
codecov:
# Wait for all CI checks to finish before posting coverage status
require_ci_to_pass: true
notify:
wait_for_ci: true
coverage:
status:
# Project-level check: overall coverage must not drop
project:
default:
target: auto # stay at or above the current coverage
threshold: 1% # allow up to 1% drop before failing
base: auto
momo-api-sdk:
target: auto
threshold: 1%
flags:
- momo-api-sdk
sample:
target: auto
threshold: 1%
flags:
- sample
app:
target: auto
threshold: 1%
flags:
- app
# Patch check: new code added in a PR must be covered
patch:
default:
target: 80% # at least 80% of new lines must be tested
# Isolate coverage by module so each gets its own status check
flags:
momo-api-sdk:
paths:
- android/momo-api-sdk/src/main/
carryforward: true
sample:
paths:
- android/sample/src/main/
carryforward: true
app:
paths:
- android/app/src/main/
carryforward: true
# PR comment layout — show diff, per-flag breakdown, and changed files
comment:
layout: "diff, flags, files"
behavior: default # update the comment on each new push
require_changes: true # only comment when coverage actually changes
# Keep GitHub Check annotations (inline coverage markers on the PR diff)
github_checks:
annotations: true