Skip to content

chore: add extension for nodenext #6694

chore: add extension for nodenext

chore: add extension for nodenext #6694

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
pull_request:
merge_group:
jobs:
typecheck:
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 20
check-latest: true
cache: 'pnpm'
- run: make install-dependencies
- run: make typing
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 20
check-latest: true
cache: 'pnpm'
- run: make install-dependencies
- run: make build
# Debug: verify the exact file contents that ESLint lints on CI
- name: Debug – show client.test.ts (imports)
run: |
git --no-pager show HEAD:packages/client/src/scw/__tests__/client.test.ts | sed -n '1,20p'
- name: Debug – show error-parser.ts (imports)
run: |
git --no-pager show HEAD:packages/client/src/scw/errors/error-parser.ts | sed -n '1,25p'
- name: Debug – run eslint on client.test.ts (no cache)
run: pnpm exec eslint --no-cache packages/client/src/scw/__tests__/client.test.ts || true
- name: Debug – run eslint on error-parser.ts (no cache)
run: pnpm exec eslint --no-cache packages/client/src/scw/errors/error-parser.ts || true
- name: Debug – print eslint config for client.test.ts
run: pnpm exec eslint --print-config packages/client/src/scw/__tests__/client.test.ts | head -200
# Run ESLint without cache to avoid stale cache issues on CI runners
- run: pnpm exec eslint --no-cache .
test:
runs-on: ubuntu-24.04
strategy:
matrix:
test-environment:
- node
- jsdom
node:
- '20'
- '22'
- '24'
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
check-latest: true
cache: 'pnpm'
- run: make install-dependencies
- run: make build
- run: pnpm run test:coverage --environment ${{ matrix.test-environment }}
- uses: codecov/[email protected]