forked from SoroScan/soroscan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
62 lines (55 loc) · 1.57 KB
/
Copy pathcodecov.yml
File metadata and controls
62 lines (55 loc) · 1.57 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
# Codecov configuration for SoroScan
# Docs: https://docs.codecov.com/docs/codecov-yaml
codecov:
# Wait for both backend and frontend reports before posting a combined status
require_ci_to_pass: yes
# Coverage target and threshold settings
coverage:
# PR status checks — fail if coverage drops by more than 1%
status:
project:
default:
# Minimum absolute coverage required across the whole project
target: 70%
# Allow coverage to drop by at most 1% before failing the check
threshold: 1%
base: auto
patch:
default:
# New code introduced in a PR must have at least 70% coverage
target: 70%
threshold: 1%
# Track coverage per flag (backend / frontend) independently
flags:
backend:
paths:
- django-backend/
carryforward: true
frontend:
paths:
- soroscan-frontend/
carryforward: true
# Pull request comment settings
comment:
layout: "reach,diff,flags,components,files"
behavior: default # post once, update on new commits
require_changes: false # always comment so coverage is visible
require_base: false
require_head: true
hide_project_coverage: false
# Ignore generated files, migrations, and config boilerplate
ignore:
- "**/__generated__/**"
- "**/gql/**"
- "**/migrations/**"
- "**/*.config.ts"
- "**/*.config.js"
- "**/*.config.mjs"
- "soroscan-frontend/app/layout.tsx"
- "soroban-contracts/**"
- "chaos-tests/**"
- "tests/chaos/**"
- "tests/failover/**"
- "testing/**"
- "load-tests/**"
- "docs/**"