diff --git a/actions-languageserver/src/context-providers/steps.test.ts b/actions-languageserver/src/context-providers/steps.test.ts index 0120216..019a612 100644 --- a/actions-languageserver/src/context-providers/steps.test.ts +++ b/actions-languageserver/src/context-providers/steps.test.ts @@ -56,7 +56,7 @@ const actionMetadata = { }; it("returns default context when job is undefined", async () => { - const workflowContext = createWorkflowContext(workflow, undefined); + const workflowContext = await createWorkflowContext(workflow, undefined); const defaultContext = getDefaultStepsContext(workflowContext); const stepsContext = await getStepsContext(new Octokit(), new TTLCache(), defaultContext, workflowContext); @@ -68,7 +68,7 @@ it("adds action outputs", async () => { .sandbox() .getOnce("https://api.github.com/repos/actions/cache/contents/action.yml?ref=v3", actionMetadata); - const workflowContext = createWorkflowContext(workflow, "build"); + const workflowContext = await createWorkflowContext(workflow, "build"); const defaultContext = getDefaultStepsContext(workflowContext); const stepsContext = await getStepsContext( diff --git a/actions-languageserver/src/description-providers/action-input.test.ts b/actions-languageserver/src/description-providers/action-input.test.ts index d1bd0eb..9912982 100644 --- a/actions-languageserver/src/description-providers/action-input.test.ts +++ b/actions-languageserver/src/description-providers/action-input.test.ts @@ -60,7 +60,7 @@ const actionMetadata = { }; async function getDescription(input: string, mock: fetchMock.FetchMockSandbox) { - const workflowContext = createWorkflowContext(workflow, "build", 0); + const workflowContext = await createWorkflowContext(workflow, "build", 0); return await getActionInputDescription( new Octokit({