Automation · GitHub Actions
Matrix Strategy
Cheat sheet · https://pcornel.dk/topic.php?topic=5528
Answer
A matrix strategy runs one job across combinations of variables, such as several OS and language versions, using strategy.matrix, with fail-fast and max-parallel controls.
Remember
- strategy.matrix runs one job for each combination.
- fail-fast stops others when one fails.
- include and exclude adjust combinations.
First checks
- strategy.matrix definition — combinations
- fail-fast and max-parallel — behaviour
gh run view <id>— matrix job results
Verify in this order
matrix → generated jobs → results
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5528