Simple caching for parsed workflow and template

This commit is contained in:
Jacob Wallraff
2023-03-02 16:43:23 -08:00
parent 4b8613da02
commit f2f377c21c
10 changed files with 58 additions and 12 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ jobs:
`convertWorkflowTemplate` then takes that intermediate representation and converts it to a [`WorkflowTemplate`](./src/workflow-template.ts) object, which is a more convenient representation for working with workflows.
```typescript
const workflowTemplate = await convertWorkflowTemplate(result.context, result.value);
const workflowTemplate = await convertWorkflowTemplate("test.yaml", result.context, result.value);
// workflowTemplate.jobs[0].id === "build"
// workflowTemplate.jobs[0].steps[0].run === "echo 'hello'"