summaryrefslogtreecommitdiff
path: root/.github/workflows/schema.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/schema.yaml')
-rw-r--r--.github/workflows/schema.yaml13
1 files changed, 10 insertions, 3 deletions
diff --git a/.github/workflows/schema.yaml b/.github/workflows/schema.yaml
index 847f52b9..4c33f65d 100644
--- a/.github/workflows/schema.yaml
+++ b/.github/workflows/schema.yaml
@@ -5,12 +5,21 @@ on:
branches:
- master
- stable
+ paths:
+ - 'schemas/**'
+ - '.github/workflows/schema.yaml'
pull_request:
+ paths:
+ - '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
@@ -18,12 +27,10 @@ jobs:
- name: Setup nodejs
uses: actions/setup-node@v4
with:
- node-version: "22"
+ node-version: "20"
- name: Install Test Script Dependencies
run: npm install
- working-directory: ./schemas
- name: Run Script
run: node test.js
- working-directory: ./schemas