Skip to content

chore: expand the CI matrix #1

chore: expand the CI matrix

chore: expand the CI matrix #1

name: Validate code
on: [push, pull_request]
permissions: { contents: read, packages: read }
jobs:
testOldNode:
runs-on: ubuntu-latest
timeout-minutes: 2
strategy:
fail-fast: false
matrix:
node-version:
- "18.13" # first version we support
- "20.0" # earliest in 20x LTS
- "20.x" # latest in 20x LTS
- "22.0" # before native TS support
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: ⏬ Install dependencies
run: yarn install && yarn add -D tsx
- name: ✅ Run tests
run: node --loader=tsx/esm --test __tests__/**/*.test.ts >> $GITHUB_STEP_SUMMARY
- name: 🏗 Run build
run: yarn build