-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Core feature request] More sophisticated matrices #297
Comments
Also strategy:
fail-fast: false
matrix:
environment:
- windows-2019
- windows-2022
- windows-latest
distribution:
- id: invalid
label: invalid
- id: ''
label: ''
- id: null
label: 'null' |
But isn't a strategy matrix just a |
Not really a for loop, more a for loop over the combinations result. I also don't know whether there might be a maximum amount of jobs maybe that you could prevent using matrices? But that's just a wild guess. And besides all that, for a migration I'd like to start with a script that produces the same result as before and then maybe refactor it to something different. But the strongest arguments are the first two. :-) |
Moving this scope to #368. |
What feature do you need?
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-contexts-to-create-matrices
Currently only the most simple and flat matrices are supported with the datatype
Map<String, List<String>>
.But besides that you can take a matrix dimension value from a context variable,
there are also much more advanced matrix use-cases that are not supported nicely yet.
For example with
strategy: matrix: include:
you can add entries to the matrix and withstrategy: matrix: exclude:
you can exclude some.And also a matrix dimension value does not have to be a flat list of strings, but it can also be a list of objects.
Do you have an example usage?
Matrix from context variable:
Matrix with objects as values:
Includes and Excludes:
The text was updated successfully, but these errors were encountered: