Skip to content

Commit 72e3829

Browse files
committed
ci: add GitHub Actions workflow for build + MCP introspection smoke test
1 parent 689f3a1 commit 72e3829

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Build
26+
run: npm run build
27+
28+
- name: MCP introspection smoke test
29+
run: |
30+
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"ci","version":"0"}}}' \
31+
| timeout 10 node dist/index.js 2>/dev/null \
32+
| grep -q '"result"' && echo "introspection OK" || (echo "introspection FAILED" && exit 1)

0 commit comments

Comments
 (0)