Skip to content

Commit e0d3abf

Browse files
committed
Add alternative validator for testing
1 parent 547dc7d commit e0d3abf

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/alt-validate.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Alternate Validate sample queries
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
validate-json-schema:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v5
10+
- name: Validate JSON schema
11+
uses: walbo/[email protected]
12+
with:
13+
schema: /tests/samples.schema.json
14+
files: /sample-queries/sample-queries.json
15+
16+
test:
17+
runs-on: ubuntu-latest
18+
needs: validate-json-schema
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Install
23+
run: npm install
24+
25+
- name: Run test
26+
run: npm run test

.github/workflows/validate.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Validate sample queries
22
on:
3+
workflow_dispatch:
4+
35
push:
46
paths:
57
- sample-queries/sample-queries.json

0 commit comments

Comments
 (0)