-
-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathcodecov.yml
More file actions
45 lines (42 loc) · 1.62 KB
/
Copy pathcodecov.yml
File metadata and controls
45 lines (42 loc) · 1.62 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
# Codecov configuration.
#
# The real coverage gate is `patch`: every line a PR changes must be >=97%
# covered. Patch coverage depends only on the PR's own diff, so merging one PR
# can never push another below the bar -- this is what kills the cross-PR churn
# the old global vitest threshold caused.
#
# `project` (whole-repo total) is informational only: it is reported as a trend
# but never blocks a merge. vitest keeps a loose 90% local backstop separately.
codecov:
# Don't post a verdict until the CI run that produced the report has finished.
require_ci_to_pass: true
coverage:
status:
patch:
default:
target: 97%
threshold: 0%
# Only fail if the PR actually changes coverable lines.
if_ci_failed: error
project:
default:
informational: true
comment:
layout: "condensed_header, diff, flags, files"
require_changes: false
# Coverage is collected by vitest (v8) over src/**; mirror its exclusions so the
# Codecov total matches the local report.
ignore:
- "src/env.d.ts"
- "apps/**"
- "test/**"
- "scripts/**"
# Self-host process entry + build-time stubs: exercised by the Docker build+boot smoke test
# (.github/workflows/selfhost.yml), not unit-coverable without booting a server/subprocess.
- "src/server.ts"
- "src/selfhost/cf-workers-shim.ts"
- "src/selfhost/stubs/**"
# Postgres runtime adapters: validated by the real-Postgres integration test (test/integration/selfhost-pg.ts,
# gated on PG_TEST_URL) + the real-PG boot. The dialect translation itself IS unit-tested (pg-dialect.ts).
- "src/selfhost/pg-adapter.ts"
- "src/selfhost/pg-queue.ts"