chore: expand the CI matrix #4
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: | |
| testAndBuild: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 2 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: | |
| - "22.6" # supports --experimental-strip-types | |
| - "22.x" # latest LTS | |
| - "23.x" # Latest current | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: ⏬ Install dependencies | |
| run: yarn install | |
| - name: ✅ Run tests | |
| run: yarn test >> $GITHUB_STEP_SUMMARY | |
| - name: 🏗 Run build | |
| run: yarn build | |