Add Butane 1.6.0 support + fix 1.5.0 missing property #87
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: Validate Changes | |
on: | |
push: | |
paths: | |
- '**.json' | |
branches: | |
- main | |
- Release | |
pull_request: | |
paths: | |
- '**.json' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
verify-json-validation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Validate all json files using their own $schema properties | |
uses: cardinalby/schema-validator-action@v3 | |
with: | |
file: 'v*/*.json|*.json' | |
- name: Validate butane v1.4 file using associated json schema | |
uses: cardinalby/schema-validator-action@v3 | |
with: | |
file: 'v1.4.0/testconfig.bu' | |
schema: 'v1.4.0/butane-v1.4.0.json' | |
mode: lax | |
- name: Validate butane v1.5 file using associated json schema | |
uses: cardinalby/schema-validator-action@v3 | |
with: | |
file: 'v1.5.0/testconfig.bu' | |
schema: 'v1.5.0/butane-v1.5.0.json' | |
mode: lax |