From 8ddb25dab28a752db4bddcfcbbd9d5057830b661 Mon Sep 17 00:00:00 2001 From: Pavel Ivanov Date: Mon, 10 Jun 2024 18:12:02 +0200 Subject: [PATCH] new: added configs and themes validation --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 461172c2..b0fc97e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,3 +33,15 @@ jobs: - name: Check formatting run: cargo +nightly fmt --verbose --all --check + + - name: Validate configs + uses: cardinalby/schema-validator-action@v3 + with: + file: 'etc/defaults/config*.yaml' + schema: 'schema/json/config.schema.json' + + - name: Validate themes + uses: cardinalby/schema-validator-action@v3 + with: + file: 'etc/defaults/themes/*.yaml|src/testing/assets/themes/*.yaml' + schema: 'schema/json/theme.schema.json'