Skip to content

Use 16-draft as the version identifier of the next version (#122) #150

Use 16-draft as the version identifier of the next version (#122)

Use 16-draft as the version identifier of the next version (#122) #150

name: Validate formatting
on:
pull_request:
push:
branches:
- master
jobs:
validate-json-schema:
name: v${{ matrix.schema }} schema
runs-on: ubuntu-latest
strategy:
matrix:
schema: [12, 13, 14, 15, 16-draft]
steps:
- uses: actions/checkout@v4
- name: Reformat JSON with jq
run: jq . -M --indent 2 < ${{ matrix.schema }}.json > ${{ matrix.schema }}-formatted.json
- name: Check for differences
run: diff ${{ matrix.schema }}.json ${{ matrix.schema }}-formatted.json && echo "No differences found!"