( workflow: WorkflowManifestEntry, ctx: PredicateContext, )
| 31 | * Checks both availability flag and all predicates. |
| 32 | */ |
| 33 | export function isWorkflowEnabledForRuntime( |
| 34 | workflow: WorkflowManifestEntry, |
| 35 | ctx: PredicateContext, |
| 36 | ): boolean { |
| 37 | // Check availability flag first |
| 38 | if (!isWorkflowAvailableForRuntime(workflow, ctx.runtime)) { |
| 39 | return false; |
| 40 | } |
| 41 | |
| 42 | // Then check predicates |
| 43 | return evalPredicates(workflow.predicates, ctx); |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Check if a tool is available for the current runtime. |
no test coverage detected