v0.6.0: production hardening — migrations, tiered retention, zc_statu… #1
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: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-and-test: | |
| name: Build, Unit Tests, Security Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: ["22.x"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: TypeScript build | |
| run: npm run build | |
| - name: Unit tests (vitest) | |
| run: npm test | |
| - name: Security attack vector tests | |
| run: node security-tests/run-all.mjs | |
| - name: Verify dist/server.js starts cleanly | |
| run: | | |
| timeout 5 node dist/server.js < /dev/null || true | |
| # Server should exit cleanly (stdin closes → MCP transport ends) | |
| echo "Server startup check complete" | |
| lint: | |
| name: TypeScript type check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.x" | |
| cache: "npm" | |
| - run: npm ci | |
| - name: Type check (no emit) | |
| run: npx tsc --noEmit |