Skip event context validation for workflow_call

This commit is contained in:
Josh Gross
2023-01-25 15:24:57 -05:00
parent a6c1383bfb
commit 64bcc2f287
6 changed files with 139 additions and 96 deletions
@@ -605,6 +605,24 @@ jobs:
// pull_request is part of the pull_request event payload
expect(result.map(x => x.label)).toContain("pull_request");
});
it("includes event payload for workflow_call", async () => {
const input = `
on: [workflow_call]
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo \${{ github.event.| }}
`;
const result = await complete(...getPositionFromCursor(input), undefined, undefined);
// We don't validate github.event for workflow_call,
// but there should still be auto-completion suggestions
expect(result.length).toBeGreaterThan(0);
});
});
describe("steps context", () => {