Class MatrixDimension
- Namespace
- Invex.Atom.Workflows.Definition
- Assembly
- Invex.Atom.Workflows.dll
Represents a dimension in a build matrix, defining variations for a workflow job or step.
public sealed record MatrixDimension
- Inheritance
-
objectMatrixDimension
Remarks
A MatrixDimension is used to run the same job or step across different configurations.
For example, a dimension named "os" could have values like "windows-latest" and "ubuntu-latest".
Dimensions with the same name on one target are merged, keeping each distinct value once.
Constructors
MatrixDimension(string)
Represents a dimension in a build matrix, defining variations for a workflow job or step.
public MatrixDimension(string Name)
Parameters
NamestringThe name of the matrix dimension (e.g., "os", "dotnet-version").
Remarks
A MatrixDimension is used to run the same job or step across different configurations.
For example, a dimension named "os" could have values like "windows-latest" and "ubuntu-latest".
Dimensions with the same name on one target are merged, keeping each distinct value once.
Properties
Name
The name of the matrix dimension (e.g., "os", "dotnet-version").
public string Name { get; init; }
Property Value
- string
Values
Gets a read-only list of string values for this dimension.
public IReadOnlyList<Template> Values { get; init; }
Property Value
- IReadOnlyList<Template>
Remarks
These values represent the different options for this dimension (e.g., "windows-latest", "ubuntu-latest").