From 4f9c9e6e1c8596e382a92a2d1e48c7d56e6de1d4 Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Tue, 24 Jan 2023 13:04:40 -0500 Subject: [PATCH] Support a 0 step index in test context --- actions-languageserver/src/test-utils/workflow-context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions-languageserver/src/test-utils/workflow-context.ts b/actions-languageserver/src/test-utils/workflow-context.ts index 63841a6..aef5cfe 100644 --- a/actions-languageserver/src/test-utils/workflow-context.ts +++ b/actions-languageserver/src/test-utils/workflow-context.ts @@ -19,7 +19,7 @@ export function createWorkflowContext(workflow: string, job?: string, stepIndex? context.job = template.jobs.find(j => j.id.value === job); } - if (stepIndex) { + if (stepIndex !== undefined) { context.step = context.job?.steps[stepIndex]; }