Skip to content

Commit

Permalink
Validate endpoint definitions against JSON schema on each push and PR (
Browse files Browse the repository at this point in the history
  • Loading branch information
derf authored Jan 26, 2021
1 parent c95e711 commit 2f84717
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2f84717

Please sign in to comment.