Validate config file against schema (#589)
This commit is contained in:
parent
9ef613173a
commit
520f112d45
1 changed files with 24 additions and 0 deletions
24
.github/workflows/schema.yml
vendored
Normal file
24
.github/workflows/schema.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: Validate Schema
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "*.yaml"
|
||||
- "*.json"
|
||||
pull_request:
|
||||
paths:
|
||||
- "*.yaml"
|
||||
- "*.json"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: nwisbeta/validate-yaml-schema@v1.0.3
|
||||
with:
|
||||
yamlSchemasJson: |
|
||||
{
|
||||
"./schema.json": ["evcc.dist.yaml"]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue