Fix workflows #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
branches: | |
- main | |
name: Validate JSON | |
jobs: | |
validate: | |
name: Validate JSON Files against schemas | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download JSON Schema specification | |
run: | | |
curl "http://json-schema.org/draft-06/schema#" | sed 's/"$schema": "http:\/\/json-schema.org\/draft-06\/schema#"/"$schema": "current_schema"/' > .schema/.json_schema.json | |
- name: Validate JSON Schema | |
uses: dsanders11/json-schema-validate-action@v1.1.0 | |
with: | |
files: ".schema/*.json" | |
schema: ".schema/.json_schema.json" | |
- name: Validate Category JSON | |
uses: dsanders11/json-schema-validate-action@v1.1.0 | |
with: | |
schema: ".schema/category.json" | |
files: "*/config.json" | |
- name: Validate Manufacturer JSON | |
uses: dsanders11/json-schema-validate-action@v1.1.0 | |
with: | |
schema: ".schema/manufacturer.json" | |
files: "*/*/config.json" | |
- name: Validate Controller JSON | |
uses: dsanders11/json-schema-validate-action@v1.1.0 | |
with: | |
schema: ".schema/controller.json" | |
files: "*/*/*/config.json" |