Fix whitespace error from #45 #362
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
name: JSON checks | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '**.json' | |
- '.github/workflows/json-checks.yml' | |
pull_request: | |
paths: | |
- '**.json' | |
- '.github/workflows/json-checks.yml' | |
jobs: | |
syntax: | |
name: Validate JSON syntax | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: json-syntax-check | |
uses: limitusus/json-syntax-check@v2 | |
with: | |
pattern: "\\.json$" | |
keys: | |
name: Validate JSON unique keys | |
runs-on: ubuntu-22.04 | |
needs: syntax | |
steps: | |
- uses: actions/checkout@v4 | |
- name: check-keys | |
run: python3 duplicate_detect.py sopel_waifu/waifu.json | |
schema: | |
name: Validate JSON schema | |
runs-on: ubuntu-22.04 | |
needs: syntax | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install-deps | |
run: pip3 install check-jsonschema | |
- name: check-json-schema | |
run: check-jsonschema --schemafile sopel_waifu/waifu.json.schema sopel_waifu/waifu.json |