Skip to main content

templates/workflows/shared/operations-domain-jobs

Interfaces

DomainJobsContext

Defined in: templates/workflows/shared/operations-domain-jobs.ts:13

Properties

domains
domains: Record<string, any>;

Defined in: templates/workflows/shared/operations-domain-jobs.ts:14

Functions

createDomainDeployJobOperations()

function createDomainDeployJobOperations(ctx): PathOperationConfig[];

Defined in: templates/workflows/shared/operations-domain-jobs.ts:134

Create deploy job operations for deployable domains

Parameters

ctx

DomainJobsContext

Returns

PathOperationConfig[]


createDomainRemoteTestJobOperations()

function createDomainRemoteTestJobOperations(ctx): PathOperationConfig[];

Defined in: templates/workflows/shared/operations-domain-jobs.ts:180

Create remote test job operations for remotely testable domains

Parameters

ctx

DomainJobsContext

Returns

PathOperationConfig[]


createDomainTestJobOperations()

function createDomainTestJobOperations(ctx): PathOperationConfig[];

Defined in: templates/workflows/shared/operations-domain-jobs.ts:88

Create test job operations for each domain

Parameters

ctx

DomainJobsContext

Returns

PathOperationConfig[]


createPrefixedDomainJobOperations()

function createPrefixedDomainJobOperations(ctx): PathOperationConfig[];

Defined in: templates/workflows/shared/operations-domain-jobs.ts:27

Create placeholder job operations for domains with custom prefixes

Generates jobs based on the prefixes field in domain config. For example, with domain 'core' and prefixes ['lint', 'build', 'test'], this creates: lint-core, build-core, test-core

Parameters

ctx

DomainJobsContext

Context with domain configurations

Returns

PathOperationConfig[]

Array of path operations for all prefix-based jobs


getDomainJobNames()

function getDomainJobNames(domains): object;

Defined in: templates/workflows/shared/operations-domain-jobs.ts:231

Get list of all domain job names for dependency management

Supports both legacy boolean flags (testable, deployable, remoteTestable) and new flexible prefixes array.

Parameters

domains

Record<string, any>

Returns

object

Object with arrays of job names categorized by type

allJobsByPrefix
allJobsByPrefix: Record<string, string[]>;
deployJobs
deployJobs: string[];
remoteTestJobs
remoteTestJobs: string[];
testJobs
testJobs: string[];