-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcodecov.yml
More file actions
71 lines (66 loc) · 2.63 KB
/
Copy pathcodecov.yml
File metadata and controls
71 lines (66 loc) · 2.63 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
# Codecov configuration for cdcf-website
#
# Posture: coverage is informational, not blocking. The four test
# suites (Vitest, PHPUnit ×2, bats) are wired as non-blocking CI checks
# (continue-on-error) per #63 — Codecov here adds visibility, not gating.
# See #91 for the rollout plan.
codecov:
# Don't make Codecov status checks block on the upstream CI being green —
# the test workflows are themselves continue-on-error, so this would
# otherwise leave the Codecov status hung.
require_ci_to_pass: false
coverage:
status:
project:
default:
# `informational` posts the status but never fails the check.
informational: true
patch:
default:
informational: true
# Each test suite runs in its own workflow with its own path filter, so
# any given PR usually only re-uploads one of the four flags. Carryforward
# tells Codecov to reuse the most recent upload for any flag the current
# commit didn't refresh, instead of treating the missing flag as 0% and
# tanking the project number.
flag_management:
default_rules:
carryforward: true
individual_flags:
- name: nextjs
paths:
- lib/wordpress/
- name: wordpress-plugin
paths:
- wordpress/plugins/cdcf-redis-translations/
- name: wordpress-theme
paths:
- wordpress/themes/cdcf-headless/
- name: worker
paths:
- scripts/cdcf_queue_worker.sh
- scripts/cdcf_queue_worker.lib.sh
comment:
layout: 'diff, flags, files'
# Post the comment even on PRs that don't change covered code, so the
# reviewer always sees the per-flag table.
require_changes: false
# Exclude declarative-only bootstrap files from coverage.
#
# functions.php is a 3000+ line WordPress theme boot file dominated by
# register_post_type() + acf_add_local_field_group() declarations,
# add_action()/add_filter() hook registrations bound to closures that
# only fire under the WP runtime, and admin page renderers explicitly
# de-scoped as Tier-4 in #107. It can't be loaded under PHPUnit because
# every line at file scope calls into WP, and all extractable
# behavioral code has been moved into includes/ with test coverage
# (PRs #122, #123 + the prior #107-tracked extractions). What remains
# is configuration, not testable behavior.
#
# The plugin bootstrap (cdcf-redis-translations.php) is the same
# pattern at smaller scale: register_activation_hook +
# add_action('init', ...) for the queue runner. Its job classes and
# handler functions live in includes/ and ARE covered.
ignore:
- 'wordpress/themes/cdcf-headless/functions.php'
- 'wordpress/plugins/cdcf-redis-translations/cdcf-redis-translations.php'