forked from NovaCoreLabs1/NovaLabs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
99 lines (88 loc) · 2.95 KB
/
Copy pathcodecov.yml
File metadata and controls
99 lines (88 loc) · 2.95 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# codecov.yml — Issue #87
#
# Code coverage configuration for Codecov.io.
# Enforces minimum coverage thresholds per component:
# - Backend (NestJS): 70 %
# - Frontend (Next.js): 60 %
# - Contracts (Rust): 80 %
#
# A PR that drops any component below its threshold will be blocked
# by the required Codecov status check.
#
# Docs: https://docs.codecov.com/docs/codecov-yaml
coverage:
# Precision of reported percentages (decimal places)
precision: 2
round: down
range: "60...100"
status:
# ── Project-level gate ──────────────────────────────────────────────────
project:
default:
# Require overall coverage to be at least 60 %
target: 60%
# Allow a 1 % drop from the base commit before failing
threshold: 1%
if_no_uploads: error
if_not_found: success
backend:
# NestJS — minimum 70 %
target: 70%
threshold: 1%
flags:
- backend
if_no_uploads: error
frontend:
# Next.js — minimum 60 %
target: 60%
threshold: 1%
flags:
- frontend
if_no_uploads: error
contracts:
# Rust smart contracts — minimum 80 %
target: 80%
threshold: 1%
flags:
- contracts
if_no_uploads: error
# ── Patch-level gate (diff coverage) ───────────────────────────────────
patch:
default:
# New/changed lines in a PR must be covered at least 80 %
target: 80%
threshold: 5%
if_no_uploads: error
# ── Flag configuration ────────────────────────────────────────────────────
# Each flag maps a CI upload token to a set of source paths so Codecov can
# split the combined report into per-component views.
flags:
backend:
paths:
- backend/
carryforward: true
frontend:
paths:
- frontend/
carryforward: true
contracts:
paths:
- contracts/
carryforward: true
# ── Comment configuration ──────────────────────────────────────────────────
comment:
layout: "reach,diff,flags,files"
behavior: default
# Show coverage info on every PR — per-file delta is visible in the comment
require_changes: false
require_base: false
require_head: true
# ── Ignore paths ──────────────────────────────────────────────────────────
ignore:
- "**/__tests__/**"
- "**/*.spec.ts"
- "**/*.test.ts"
- "**/node_modules/**"
- "frontend/.next/**"
- "contracts/target/**"
- "backend/dist/**"