Merge pull request #7 from MahammadNuriyev62/claude/reorder-installat… #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |