ci: check if presets files follow config schema (#4060)

This commit is contained in:
David Knaack 2022-06-15 23:30:30 +02:00 committed by GitHub
parent b8cbd7748c
commit 09bbea8197
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -16,6 +16,18 @@ jobs:
- name: Docs | Format - name: Docs | Format
uses: dprint/check@v2.0 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 # If this is not a Crowdin PR, block changes to translated documentation
block-crowdin: block-crowdin:
name: Block Translated Changes name: Block Translated Changes