medium10 pts · first answer countsgithub-actionsci-cd
Matrix jobs cancelled early
A workflow tests on Node 20, 22 and 24 using a matrix. When the Node 20 job fails, the other two are cancelled, hiding whether they pass. Why?
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [20, 22, 24]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: "${{ matrix.node }}" }
- run: npm ci && npm test