Skip to content

Commit

Permalink
Add YAML schema
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwhitaker committed Jul 22, 2024
1 parent 0c50042 commit 2464fb2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"yaml.schemas": {
"./schema.yaml": ".runny.yaml"
}
}
27 changes: 27 additions & 0 deletions schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
type: object
properties:
shell:
type: string
env:
type: array
items:
type: string
commands:
type: object
additionalProperties:
type: object
properties:
if:
type: string
run:
type: string
needs:
type: array
items:
type: string
env:
type: array
items:
type: string
required:
- commands

0 comments on commit 2464fb2

Please sign in to comment.