Files
Trilium/.github
Elian DoranandClaude Opus 5.5 76f1f14074 ci(share): enforce full coverage of the share code and upload it
- The share theme runs in a step of its own with `--coverage`, which its
  config fails below 100%, and uploads coverage and test results to
  Codecov under a new `share-theme` flag.
- The server and standalone configs fail below 100% for
  `packages/trilium-core/src/share/**`, plus `apps/server/src/share/**`
  and standalone's `lightweight/share_provider.ts`. Each runner has to
  reach it on its own.
- `codecov.yml` adds a `share` project status at 100% over every share
  path, on the merged coverage.

The server's coverage never contained core: Vitest matches a file
outside the root by its absolute path, which the relative
`../../packages/trilium-core/src/**` include never matched, so Codecov
showed core at 0% for the `server` flag. The include is now absolute.
The run also prints PARSE_ERROR noise for untested core files, as
standalone already did; it does not fail the run.

The developing-share-pages skill describes the gate and the mocking
trap behind the spies.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-09 15:15:37 +03:00
..
2025-07-12 23:28:07 +03:00