Class BuildStep
Represents a single executable step in the build workflow. Steps are registered during script execution and run by WorkflowRunner.
public class BuildStep
- Inheritance
-
BuildStep
- Inherited Members
Constructors
BuildStep(string, Func<Task<bool>>, string?)
Represents a single executable step in the build workflow. Steps are registered during script execution and run by WorkflowRunner.
public BuildStep(string Name, Func<Task<bool>> Execute, string? Context = null)
Parameters
NamestringStep type name (e.g., "Dotnet.Build", "Npm.Install").
ExecuteFunc<Task<bool>>Async function that executes the step and returns success/failure.
ContextstringAdditional context (e.g., project name) shown in logs.
Properties
Context
Additional context (e.g., project name) shown in logs.
public string? Context { get; }
Property Value
DisplayName
Human-readable name for logging. Format: "Name" or "Name (Context)" if context is present.
public string DisplayName { get; }
Property Value
Execute
Async function that executes the step and returns success/failure.
public Func<Task<bool>> Execute { get; }
Property Value
IsLogStep
Whether this is a log step that renders as a single line.
public bool IsLogStep { get; init; }
Property Value
LogLevel
Log level for log steps (Info, Warning, Error, Debug).
public LogStepLevel LogLevel { get; init; }
Property Value
LogMessage
Message for log steps.
public string? LogMessage { get; init; }
Property Value
Name
Step type name (e.g., "Dotnet.Build", "Npm.Install").
public string Name { get; }