Skip to content
RED SAG Skills
mediumStudy question · answer published in Node.js interview questions, so no pointsgithub-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
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions