Skip to content

Commit 040f3a0

Browse files
committed
ci: add GitHub Actions CI workflow (syntax check)
1 parent f1a7842 commit 040f3a0

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
name: Syntax check
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: '20'
18+
cache: 'npm'
19+
- run: npm ci
20+
- run: node --check index.js
21+
- run: node -e "const s = require('./index.js'); console.log('MCP server loads OK')" || true

0 commit comments

Comments
 (0)