trilium/codecov.yml
Elian Doran 6f689920b4
ci(ckeditor5): upload aggregate package coverage to Codecov
CI never produced coverage for packages/ckeditor5 (it ran in the catch-all
"rest of the tests" step without --coverage), and the codecov-action steps
upload only explicit hardcoded paths — so the package never reached Codecov.

- dev.yml: run the ckeditor5 browser-mode suite with --coverage in its own
  step (sharing the chromedriver setup the other CKEditor tests use), upload
  the lcov + junit results to Codecov under a new `ckeditor5` flag, and drop
  ckeditor5 from the no-coverage catch-all so it isn't run twice.
- vitest.config.ts: emit junit results and write coverage to
  test-output/vitest/coverage (matches the other suites' convention and lands
  under the already-gitignored test-output/ instead of an untracked coverage/).
- codecov.yml: add the `ckeditor5` flag scoped to packages/ckeditor5/src/.

This also makes CI enforce the package's 100% coverage gate (the threshold
already lived in vitest.config.ts but was never exercised under --coverage).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-13 14:54:37 +03:00

52 lines
1.2 KiB
YAML

coverage:
status:
project:
default:
target: auto
threshold: 1%
patch:
default:
target: 80%
threshold: 5%
# trilium-core has no test runner of its own; its specs run *through* the server
# and standalone suites. Vitest's v8 provider emits those external files with
# paths relative to each suite's project root, so they arrive as `../../packages/…`
# (server, root = apps/server) and `../../../packages/…` (standalone, root = apps/standalone/src).
# Strip the leading `../` segments so the paths resolve to the repo-root tree.
fixes:
- "../../../packages/::packages/"
- "../../packages/::packages/"
flags:
client:
paths:
- apps/client/src/
carryforward: true
server:
paths:
- apps/server/src/
- packages/trilium-core/src/
carryforward: true
standalone:
paths:
- apps/standalone/src/
- packages/trilium-core/src/
carryforward: true
desktop:
paths:
- apps/desktop/src/
carryforward: true
commons:
paths:
- packages/commons/src/
carryforward: true
ckeditor5:
paths:
- packages/ckeditor5/src/
carryforward: true
comment:
layout: "condensed_header, condensed_files, condensed_footer"
require_changes: true