3 on: [pull_request, push]
9 latest: ${{ steps.set-matrix.outputs.requireds }}
10 minors: ${{ steps.set-matrix.outputs.optionals }}
12 - uses: ljharb/actions/node/matrix@main
20 runs-on: ubuntu-latest
23 matrix: ${{ fromJson(needs.matrix.outputs.latest) }}
26 - uses: actions/checkout@v2
27 - uses: ljharb/actions/node/run@main
28 name: 'npm install && npm run tests-only'
30 node-version: ${{ matrix.node-version }}
33 needs: [matrix, latest]
34 name: 'non-latest minors'
35 continue-on-error: true
36 if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }}
37 runs-on: ubuntu-latest
40 matrix: ${{ fromJson(needs.matrix.outputs.minors) }}
43 - uses: actions/checkout@v2
44 - uses: ljharb/actions/node/run@main
46 node-version: ${{ matrix.node-version }}
51 needs: [latest, minors]
52 runs-on: ubuntu-latest
54 - run: 'echo tests completed'