From 2f84717ac17117e938e32094f0e3f82929302f85 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 26 Jan 2021 17:09:20 +0100 Subject: [PATCH] Validate endpoint definitions against JSON schema on each push and PR (#11) --- .github/workflows/validate.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/validate.yml 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