Skip to content

fix(matrix): reject array values in include/exclude for scalar keys#664

Open
leno23 wants to merge 1 commit into
rhysd:mainfrom
leno23:fix/matrix-include-exclude-scalar-630
Open

fix(matrix): reject array values in include/exclude for scalar keys#664
leno23 wants to merge 1 commit into
rhysd:mainfrom
leno23:fix/matrix-include-exclude-scalar-630

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

  • Report a clear error when include or exclude uses a YAML sequence for a matrix key whose matrix: dimension uses scalar values (e.g. php: ['8.2'] instead of php: '8.2')
  • Keys only defined in include (such as runner label lists) may still use arrays
  • Array-valued matrix dimensions can still use array values in exclude as before

Fixes #630

Test plan

When a matrix dimension lists scalar values, wrapping them in a YAML
sequence in include or exclude fails at runtime. Fixes rhysd#630.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect values of invalid types for strategy.matrix.include and strategy.matrix.exclude

1 participant