Finish catching up on shows I watched recently #369
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: make duplicates | |
schema: | |
name: Validate JSON schema | |
runs-on: ubuntu-22.04 | |
needs: syntax | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install-deps | |
run: make schema-check-deps | |
- name: check-json-schema | |
run: make schema-check | |
whitespace: | |
name: "Check for whitespace errors" | |
runs-on: ubuntu-22.04 | |
needs: syntax | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install-deps | |
run: make whitespace-deps | |
- name: check-whitespace | |
run: make whitespace |