From 520f112d45acba096460b8e1caf9966ee84a6b1b Mon Sep 17 00:00:00 2001 From: andig Date: Tue, 12 Jan 2021 21:56:54 +0100 Subject: [PATCH] Validate config file against schema (#589) --- .github/workflows/schema.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/schema.yml diff --git a/.github/workflows/schema.yml b/.github/workflows/schema.yml new file mode 100644 index 000000000..848066294 --- /dev/null +++ b/.github/workflows/schema.yml @@ -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"] + }