Skip to content

Merge pull request #28 from freema/claude/fix-node-22-tests-01SBCp2mm… #29

Merge pull request #28 from freema/claude/fix-node-22-tests-01SBCp2mm…

Merge pull request #28 from freema/claude/fix-node-22-tests-01SBCp2mm… #29

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20, 22]
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 --no-audit --no-fund
- name: Lint
run: npm run lint
- name: Format check
run: npm run format:check
- name: Type check
run: npm run typecheck
- name: Build
run: npm run build
- name: Test with coverage
run: npm run test:coverage
- name: Upload coverage reports to Codecov
if: matrix.node-version == 20
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
- name: Upload artifacts
if: matrix.node-version == 20
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
retention-days: 7