In a matrix strategy with os: [ubuntu, windows] and node: [16, 18], which key removes the ubuntu+node16 combination specifically?
Select an answer to reveal the explanation.
Short Explanation and Infographic
The 'exclude:' key is like a blacklist for your matrix — you describe the combination you don't want, and GitHub Actions drops it.
Full explanation below image
Full Explanation
The 'strategy.matrix.exclude:' key accepts a list of partial or complete matrix value combinations to remove from the generated matrix. Any combination matching all specified keys is removed. Its counterpart 'include:' adds new combinations or adds extra variables to existing combinations. 'filter:', 'skip:', and 'omit:' are not valid GitHub Actions matrix keys. In this example: exclude: - os: ubuntu / node: 16 would remove that single combination, leaving ubuntu+18, windows+16, and windows+18.