diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..3c85994 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,20 @@ +name: Validate endpoint definitions + +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' + +jobs: + verify-json-validation: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Validate JSON + uses: docker://nhalstead00/validate-json-action:latest + env: + INPUT_SCHEMA: schema.json + INPUT_JSONS: data/*/*.json