Skip to content

Merge pull request #2 from thunderbird/features/1-json-schema #5

Merge pull request #2 from thunderbird/features/1-json-schema

Merge pull request #2 from thunderbird/features/1-json-schema #5

Workflow file for this run

name: validate-json
on:
[push]
# push:
# branches: ["main"]
# pull_request:
# branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ">=1.22.4"
- name: Install dependencies
run: go install github.com/santhosh-tekuri/jsonschema/cmd/jv@latest
- name: Validate JSON files
run: |
if [ -d "json" ] && [ "$(ls -A json/*.json 2>/dev/null)" ]; then
jv snapshot-schema.json json/*.json
else
echo "No JSON files to process."
fi