summaryrefslogtreecommitdiff
path: root/.github/workflows/schema.yaml
blob: ed029b38162e28466c76694050d6a47d01b55d87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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