templates/workflows/shared/operations-gate
Interfaces
GateJobContext
Defined in: templates/workflows/shared/operations-gate.ts:14
Properties
allJobsByPrefix?
optional allJobsByPrefix: Record<string, string[]>;
Defined in: templates/workflows/shared/operations-gate.ts:21
All jobs by prefix (from getDomainJobNames) Allows gating on any custom prefix jobs (e.g., lint, build, etc.)
deployJobNames?
optional deployJobNames: string[];
Defined in: templates/workflows/shared/operations-gate.ts:16
testJobNames
testJobNames: string[];
Defined in: templates/workflows/shared/operations-gate.ts:15
Functions
createGateJobOperation()
function createGateJobOperation(ctx): PathOperationConfig;
Defined in: templates/workflows/shared/operations-gate.ts:37
Create a gate job operation that runs after all test jobs
The gate job:
- Runs on ALL events (PRs, push to any branch)
- Depends on all test jobs
- Uses "at least one success AND no failures" pattern
- Provides a single gate point for downstream jobs (tag, deploy, etc.)
- Always runs (even if tests are skipped) using always()
Parameters
ctx
Context containing test job names
Returns
Path operation config for the gate job