1
0
mirror of https://github.com/go-task/task.git synced 2025-03-05 15:05:42 +02:00

chore: add linting CI step for the JSON Schema

This is written to use `check-jsonschema` on the (current) latest
version (0.27.3).

It checks that the JSON Schema published in the docs is valid
under its declared metaschema (`$schema`).
This commit is contained in:
Stephen Rosen 2024-01-18 12:29:45 -06:00 committed by Andrey Nering
parent d6b9b30804
commit b377ddebff

View File

@ -22,3 +22,18 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2
lint-jsonschema:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: 3.12
- uses: actions/checkout@v3
- name: install check-jsonschema
run: python -m pip install 'check-jsonschema==0.27.3'
- name: check-jsonschema (metaschema)
run: check-jsonschema --check-metaschema docs/static/schema.json