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 testDiscussion 0
Join free to post in the discussion.
Related questions
- CI vs Continuous DeliveryDevOps Engineer
- What set -euo pipefail doesDevOps Engineer
- Where GitHub Actions workflows liveDevOps Engineer
- GitLab CI stagesDevOps Engineer
- Why keep a Jenkinsfile in the repoDevOps Engineer
- Parking unfinished changesDevOps Engineer
- Copying one fix to a release branchDevOps Engineer
- Version bump for a breaking changeDevOps Engineer