chore: expand the CI matrix #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |