summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorNicolai Cornelis <[email protected]>2024-10-26 03:42:58 +0200
committerNicolai Cornelis <[email protected]>2024-10-26 03:42:58 +0200
commite2fd52ee6d3b9cc9dad0e0df4578b63bcdaa2738 (patch)
treecf3c27c9f4e02e400bb00e0a4ea3fdb3939f53ef /.github
parent7c91597496ea58016e52ab232352d219d47cadbf (diff)
Remove inline schema ref
Fix invalid metrics examples Adjust workflow file
Diffstat (limited to '.github')
-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