Skip to content

ci: drop Node 24 (tree-sitter doesn't compile), add fail-fast: false #3

ci: drop Node 24 (tree-sitter doesn't compile), add fail-fast: false

ci: drop Node 24 (tree-sitter doesn't compile), add fail-fast: false #3

Workflow file for this run

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