From a0f370259b33882657a70e62d1c09ca6564f1c77 Mon Sep 17 00:00:00 2001 From: mamayer19 Date: Tue, 12 Dec 2023 11:00:30 +0100 Subject: [PATCH] ci: add json validation action --- .github/workflows/json-validate.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/json-validate.yml diff --git a/.github/workflows/json-validate.yml b/.github/workflows/json-validate.yml new file mode 100644 index 000000000..0b76b2153 --- /dev/null +++ b/.github/workflows/json-validate.yml @@ -0,0 +1,21 @@ +name: Validate vendor JSON files +on: + pull_request: + branches: + - main + +permissions: + contents: read + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Validate JSON + uses: GrantBirki/json-yaml-validate@v2.4.0 + with: + base_dir: docs/tools/vdb_table/data + json_schema: docs/tools/vdb_table/data/vendor.schema.json