diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ebfa77..bc18846 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,27 @@ on: branches: [main] jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - uses: actions/setup-node@v6 + with: + # Node >= 23.6 runs the TypeScript test files natively (type-stripping), + # matching the local toolchain. No build step or extra deps required. + node-version: 24 + cache: npm + + - name: Install dependencies + run: npm install --legacy-peer-deps + + - name: Typecheck + run: npm run typecheck + + - name: Unit tests + run: npm test + build: runs-on: ubuntu-latest env: