From 749ee032648e9808cef9ea1a2e7a9f2a35dd23ff Mon Sep 17 00:00:00 2001 From: Alastair Pitts Date: Mon, 11 Nov 2024 18:35:15 -0700 Subject: [PATCH] Validate json against schema --- .github/workflows/test-deprecated-tags.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-deprecated-tags.yml b/.github/workflows/test-deprecated-tags.yml index b3047ba..8ac3cb0 100644 --- a/.github/workflows/test-deprecated-tags.yml +++ b/.github/workflows/test-deprecated-tags.yml @@ -1,12 +1,26 @@ -name: Test deprecated versions latest tags +name: Test versions.json on: workflow_dispatch: pull_request: paths: - versions.json + - versions.schema.json - .github/workflows/test-deprecated-tags.yml jobs: + validate_json: + name: Validate json against schema + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + python-version: '3.13' + - run: pip install json-spec + - run: json validate --schema-file=versions.schema.json --document-file=versions.json + get_deprecated_tags: name: Get deprecated version latest tags runs-on: ubuntu-latest