From 09bbea81977beb94f5428e3e4e784a581afe7921 Mon Sep 17 00:00:00 2001 From: David Knaack Date: Wed, 15 Jun 2022 23:30:30 +0200 Subject: [PATCH] ci: check if presets files follow config schema (#4060) --- .github/workflows/format-workflow.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/format-workflow.yml b/.github/workflows/format-workflow.yml index 5f41ae23..08428bd8 100644 --- a/.github/workflows/format-workflow.yml +++ b/.github/workflows/format-workflow.yml @@ -16,6 +16,18 @@ jobs: - name: Docs | Format uses: dprint/check@v2.0 + # Validate preset files + taplo: + name: Taplo [Preset schema validation] + runs-on: ubuntu-latest + steps: + - name: Setup | Checkout + uses: actions/checkout@v3 + - name: Install | Taplo + run: cargo install --debug --locked --version 0.6.3 taplo-cli + - name: Presets | Validate with schema + run: taplo lint --schema "file://${GITHUB_WORKSPACE}/.github/config-schema.json" docs/.vuepress/public/presets/toml/*.toml + # If this is not a Crowdin PR, block changes to translated documentation block-crowdin: name: Block Translated Changes