D1: Strategy & Matrix
GH-200 GitHub Actions exam practice questions · 11 flashcards
Question
strategy.matrix?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Strategy & Matrix practice questions and answers
- strategy.matrix?Generates job variations across combinations of variables (OS, versions).
- include?Adds combinations or extra variables to specific combinations.
- exclude?Removes specific combinations.
- fail-fast?Default true: cancel in-progress matrix jobs if one fails; set false to run all.
- max-parallel?Limits concurrent matrix jobs.
- Matrix job limit?Up to 256 jobs per workflow run matrix.
- Referencing matrix values?${{ matrix.os }}, ${{ matrix.node }}.
- Optimizing matrix cost?Exclude redundant combos, test edge versions only, run full matrix on main only.
- Runner image changes?ubuntu-20.04 deprecated/removed; windows-latest moving to Windows Server 2025 — pin explicit versions when needed.
- Dynamic matrix?Build matrix JSON in a prior job output and use fromJSON().
- Example: 3 OS × 3 Node versions?9 jobs.