Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8.14.1
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run typecheck
- run: pnpm run build
- run: pnpm run coverage
Comment on lines +11 to +24
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
</p>

<p align="center">
<a href="https://github.com/Bitget-AI/agent-sdk/actions/workflows/ci.yml"><img src="https://github.com/Bitget-AI/agent-sdk/actions/workflows/ci.yml/badge.svg" alt="Bitget Agent SDK continuous integration build status" /></a>
<a href="https://www.npmjs.com/package/@bitget-ai/bitget-agent-sdk"><img src="https://img.shields.io/npm/v/%40bitget-ai%2Fbitget-agent-sdk.svg?style=flat-square&color=6f42c1&label=npm" alt="Bitget Agent SDK npm package version" /></a>
<a href="https://www.npmjs.com/package/@bitget-ai/bitget-agent-sdk"><img src="https://img.shields.io/npm/dm/%40bitget-ai%2Fbitget-agent-sdk.svg?style=flat-square&color=026e00&label=downloads" alt="Bitget Agent SDK monthly downloads" /></a>
<img src="https://img.shields.io/npm/types/%40bitget-ai%2Fbitget-agent-sdk.svg?style=flat-square" alt="TypeScript type definitions included" />
Expand Down
12 changes: 5 additions & 7 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ export default defineConfig({
"src/**/*.d.ts",
"src/bin/**", // thin CLI entrypoints
],
// Provisional floor. These thresholds have NOT been run yet (the offline
// registry blocks installing @vitest/coverage-v8); calibrate them against
// the first real `pnpm run coverage` report and adjust as needed.
// Calibrated against the CI run in PR #3 (93.02% stmts / 90.65% branch / 96.62% funcs / 93.02% lines).
thresholds: {
lines: 80,
functions: 80,
statements: 80,
branches: 75,
lines: 85,
functions: 90,
statements: 85,
branches: 85,
},
},
},
Expand Down
Loading