ci: drop Node 24 (tree-sitter doesn't compile), add fail-fast: false #3
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: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # Node 24 excluded — tree-sitter native bindings don't compile on it yet | |
| node-version: [20, 22] | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm install --legacy-peer-deps | |
| - run: npx tsc --noEmit | |
| - run: npm test | |
| - run: npm run build | |
| install-test: | |
| runs-on: ${{ matrix.os }} | |
| needs: test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [20, 22] | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm install --legacy-peer-deps | |
| - run: npm pack | |
| - name: Install from tarball (simulates npm install -g) | |
| run: npm install -g ./codecortex-ai-*.tgz --legacy-peer-deps | |
| - name: Verify CLI works | |
| run: | | |
| codecortex --version | |
| codecortex --help |