diff options
Diffstat (limited to '.github/workflows/schema.yaml')
-rw-r--r-- | .github/workflows/schema.yaml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/schema.yaml b/.github/workflows/schema.yaml new file mode 100644 index 00000000..ed029b38 --- /dev/null +++ b/.github/workflows/schema.yaml @@ -0,0 +1,38 @@ +name: rr_json_schema_validation + +on: + push: + branches: + - master + - stable + paths: + - '.rr*' + - 'schemas/**' + - '.github/workflows/schema.yaml' + pull_request: + paths: + - '.rr*' + - 'schemas/**' + - '.github/workflows/schema.yaml' + +jobs: + validate-json-schema: + name: Validate JSON Schema files + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./schemas + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Setup nodejs + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: Install Test Script Dependencies + run: npm install + + - name: Run Script + run: node test.js |