forked from JSONbored/metagraphed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
33 lines (31 loc) · 1.42 KB
/
Copy pathcodecov.yml
File metadata and controls
33 lines (31 loc) · 1.42 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
# Codecov — the primary PR coverage gate (replaces the fixed absolute-% pin that
# vitest.config.mjs used to enforce; those thresholds are now just a backstop
# floor). This is DELTA-based, so it never causes the "every PR must match a
# near-peak absolute number and one merge pushes the others below it" churn:
# - `project` compares total coverage to the PR base, tolerating a small drop.
# - `patch` checks only the lines THIS PR changed (the real "test your new
# code" signal — PR-local, independent of global fluctuation).
# The uploaded lcov is already scoped to runtime code (src/** + workers/** + 5
# named scripts) by vitest's coverage.include, so Codecov reports only those.
coverage:
status:
project:
default:
target: auto # compare against the PR base, not a fixed number
threshold: 1% # tolerate up to a 1% total drop before failing
informational: false
patch:
default:
target: 99% # near-zero slack for changed runtime code
threshold: 0%
only_pulls: true
informational: false
comment:
layout: "condensed_header, diff, files"
behavior: default
require_changes: false
# Codecov's own status checks are only merge-blocking if added to branch
# protection's required checks (metagraphed's are intentionally empty — the owner
# admin-merges). Until then these are informative PR annotations + the dashboard.
github_checks:
annotations: true