How do you limit the number of simultaneous jobs in a matrix strategy to 3?
Select an answer to reveal the explanation.
Short Explanation and Infographic
max-parallel is the throttle valve on your matrix — it lets you cap how many runners get consumed simultaneously.
Full explanation below image
Full Explanation
The 'strategy.max-parallel' key limits how many matrix jobs run concurrently. Without it, GitHub runs as many matrix jobs simultaneously as available runners allow. Setting 'max-parallel: 3' queues remaining jobs and runs them as slots open. This is useful for: limiting API rate limit consumption, reducing costs when runners are charged per-minute, or avoiding overwhelming downstream services during testing. 'strategy.concurrency' doesn't exist (concurrency is a top-level workflow feature). 'strategy.limit' and 'concurrency.max' are not valid GitHub Actions syntax.