name: CI on: pull_request: push: branches: [main] concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: test: runs-on: ubuntu-latest strategy: fail-fast: false matrix: node: [18, 20, 22] name: test (node ${{ matrix.node }}) steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} cache: npm - run: npm ci - run: npm test - run: npm run build