-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 859 Bytes
/
Copy pathci.yml
File metadata and controls
42 lines (32 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
branches: [master]
pull_request:
workflow_call: # allow other workflows to reuse this
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm ci
- name: Type check (Worker)
run: npm run typecheck
- name: Type check (Node.js)
run: npm run typecheck:node
- name: Build Node.js dist
run: npm run build
- name: Validate .mcpb manifest
run: npm run pack
- name: Smoke tests (Node.js server)
run: |
node dist/main.js --port 3001 &
SERVER_PID=$!
sleep 2
MCP_URL=http://localhost:3001/mcp node test/smoke.mjs
kill $SERVER_PID