Merge pull request #16 from akalforge/dependabot/npm_and_yarn/package… #62
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, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| test: | |
| name: Test on Node.js ${{ matrix.node-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x, 22.x, 24.x, 25.x] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| cache-dependency-path: packages/cli/package-lock.json | |
| - name: Install CLI dependencies | |
| working-directory: packages/cli | |
| run: npm ci | |
| - name: Lint CLI (type-check) | |
| working-directory: packages/cli | |
| run: npm run lint | |
| - name: Run CLI tests | |
| working-directory: packages/cli | |
| run: npm test | |
| - name: Build CLI | |
| working-directory: packages/cli | |
| run: npm run build | |
| - name: Test CLI entry point | |
| working-directory: packages/cli | |
| run: node bin/run.js --help | |
| - name: Install MCP dependencies | |
| working-directory: packages/mcp | |
| run: npm install | |
| - name: Lint MCP (type-check) | |
| working-directory: packages/mcp | |
| run: npm run lint | |
| - name: Run MCP tests | |
| working-directory: packages/mcp | |
| run: node_modules/.bin/vitest run | |
| - name: Build MCP | |
| working-directory: packages/mcp | |
| run: npm run build | |