Skip to content

Commit 1ca9764

Browse files
committed
ci: add coverage reporting via Codecov
Configures Jest to output lcov coverage, uploads to Codecov in CI, and adds coverage badge to README.
1 parent 3ca4c39 commit 1ca9764

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,10 @@ jobs:
2424
run: npm run build:server
2525

2626
- name: Run tests
27-
run: npm test
27+
run: npm test -- --coverage
28+
29+
- name: Upload coverage to Codecov
30+
uses: codecov/codecov-action@v5
31+
with:
32+
token: ${{ secrets.CODECOV_TOKEN }}
33+
files: coverage/lcov.info

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# graphmemory
22

3+
[![npm](https://img.shields.io/npm/v/@graphmemory/server)](https://www.npmjs.com/package/@graphmemory/server)
4+
[![CI](https://github.com/graph-memory/graphmemory/actions/workflows/ci.yml/badge.svg)](https://github.com/graph-memory/graphmemory/actions/workflows/ci.yml)
5+
[![License: ELv2](https://img.shields.io/badge/license-ELv2-blue)](LICENSE)
6+
[![codecov](https://codecov.io/gh/graph-memory/graphmemory/graph/badge.svg)](https://codecov.io/gh/graph-memory/graphmemory)
7+
38
An MCP server that builds a **semantic graph memory** from a project directory.
49
Indexes markdown docs, TypeScript/JavaScript source code, and all project files into six graph structures,
510
then exposes them as **58 MCP tools** + **REST API** + **Web UI**.
@@ -155,7 +160,7 @@ See [docs/authentication.md](docs/authentication.md).
155160
```bash
156161
npm run dev # tsc --watch (backend)
157162
cd ui && npm run dev # Vite on :5173, proxies /api → :3000
158-
npm test # 1240 tests across 28 suites
163+
npm test # 1619 tests across 42 suites
159164
```
160165

161166
## Documentation

jest.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const config: Config = {
1515
'^mime$': '<rootDir>/src/tests/__mocks__/mime.ts',
1616
},
1717
watchman: false,
18+
coverageDirectory: 'coverage',
19+
coverageReporters: ['lcov', 'text-summary'],
1820
};
1921

2022
export default config;

0 commit comments

Comments
 (0)