chore: add real badges and wire up codecov (#127)
- Replace the static fake coverage badge with codecov. - Add npm version and bundlephobia bundle-size badges. - Add test:coverage script and lcov reporter so CI can upload. - Add a coverage job in CI that uploads to codecov on Node 20. Requires CODECOV_TOKEN secret to be set in the repo for the badge to populate; until then the badge will display "unknown".
This commit is contained in:
parent
7adb065ea3
commit
e5c82bb0d1
|
|
@ -21,3 +21,19 @@ jobs:
|
|||
- run: rm -f package-lock.json && npm install
|
||||
- run: npm run lint
|
||||
- run: npm test
|
||||
|
||||
coverage:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
- run: rm -f package-lock.json && npm install
|
||||
- run: npm run test:coverage
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: ./coverage/lcov.info
|
||||
fail_ci_if_error: false
|
||||
|
|
|
|||
|
|
@ -4,10 +4,12 @@ The lightweight multi-agent orchestration engine for TypeScript. Three runtime d
|
|||
|
||||
CrewAI is Python. LangGraph makes you draw the graph by hand. `open-multi-agent` is the `npm install` you drop into an existing Node.js backend when you need a team of agents to work on a goal together. Nothing more, nothing less.
|
||||
|
||||
[](https://www.npmjs.com/package/@jackchen_me/open-multi-agent)
|
||||
[](https://github.com/JackChen-me/open-multi-agent/stargazers)
|
||||
[](./LICENSE)
|
||||
[](https://www.typescriptlang.org/)
|
||||
[](https://github.com/JackChen-me/open-multi-agent/actions)
|
||||
[](https://bundlephobia.com/package/@jackchen_me/open-multi-agent)
|
||||
[](https://codecov.io/gh/JackChen-me/open-multi-agent)
|
||||
|
||||
**English** | [中文](./README_zh.md)
|
||||
|
||||
|
|
@ -456,7 +458,7 @@ Issues, feature requests, and PRs are welcome. Some areas where contributions wo
|
|||
## Contributors
|
||||
|
||||
<a href="https://github.com/JackChen-me/open-multi-agent/graphs/contributors">
|
||||
<img src="https://contrib.rocks/image?repo=JackChen-me/open-multi-agent&max=20&v=20260411" />
|
||||
<img src="https://contrib.rocks/image?repo=JackChen-me/open-multi-agent&max=20&v=20260419" />
|
||||
</a>
|
||||
|
||||
## Star History
|
||||
|
|
|
|||
|
|
@ -4,10 +4,12 @@ TypeScript 里的轻量多智能体编排引擎。3 个运行时依赖,零配
|
|||
|
||||
CrewAI 是 Python。LangGraph 要你自己画图。`open-multi-agent` 是你现有 Node.js 后端里 `npm install` 一下就能用的那一层:一支 agent 团队围绕一个目标协作,就这些。
|
||||
|
||||
[](https://www.npmjs.com/package/@jackchen_me/open-multi-agent)
|
||||
[](https://github.com/JackChen-me/open-multi-agent/stargazers)
|
||||
[](./LICENSE)
|
||||
[](https://www.typescriptlang.org/)
|
||||
[](https://github.com/JackChen-me/open-multi-agent/actions)
|
||||
[](https://bundlephobia.com/package/@jackchen_me/open-multi-agent)
|
||||
[](https://codecov.io/gh/JackChen-me/open-multi-agent)
|
||||
|
||||
[English](./README.md) | **中文**
|
||||
|
||||
|
|
@ -451,7 +453,7 @@ Issue、feature request、PR 都欢迎。特别想要:
|
|||
## 贡献者
|
||||
|
||||
<a href="https://github.com/JackChen-me/open-multi-agent/graphs/contributors">
|
||||
<img src="https://contrib.rocks/image?repo=JackChen-me/open-multi-agent&max=20&v=20260411" />
|
||||
<img src="https://contrib.rocks/image?repo=JackChen-me/open-multi-agent&max=20&v=20260419" />
|
||||
</a>
|
||||
|
||||
## Star 趋势
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
"dev": "tsc --watch",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"lint": "tsc --noEmit",
|
||||
"test:e2e": "RUN_E2E=1 vitest run tests/e2e/",
|
||||
"prepublishOnly": "npm run build"
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ export default defineConfig({
|
|||
test: {
|
||||
coverage: {
|
||||
include: ['src/**'],
|
||||
reporter: ['text', 'html', 'lcov', 'json'],
|
||||
},
|
||||
exclude: [
|
||||
'**/node_modules/**',
|
||||
|
|
|
|||
Loading…
Reference in New Issue