Class Job

  • All Implemented Interfaces:
    io.typeflows.util.Renderable

    
    public final class Job
    extends Base implements Renderable<Map<String, Any>>
                        

    Represents a GitHub Actions workflow job.

    A job is a set of steps that execute on the same runner. Jobs run in parallel by default but can be configured to run sequentially by defining dependencies. Each job runs in a fresh virtual environment specified by the runsOn parameter.

    • Constructor Detail

    • Method Detail

      • create

        @JvmOverloads() final static Job create(String id, RunsOn runsOn, Configure<Job.DSL> block)

        Creates and configures a Job instance.

        Parameters:
        id - Unique identifier for the job (will be converted to lowercase with spaces replaced by hyphens)
        runsOn - The runner environment where the job will execute
        block - Configuration lambda to set up the job
        Returns:

        Configured Job instance

      • create

        @JvmOverloads() final static Job create(String id, RunsOn runsOn)

        Creates and configures a Job instance.

        Parameters:
        id - Unique identifier for the job (will be converted to lowercase with spaces replaced by hyphens)
        runsOn - The runner environment where the job will execute
        Returns:

        Configured Job instance