Skip to content

Commit 33c0340

Browse files
committed
Update schema-tests.yaml
1 parent 37e4ef0 commit 33c0340

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/schema-tests.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ name: schema-test
44
# Issue: https://github.com/OAI/OpenAPI-Specification/pull/2489
55

66
#
7-
# This workflow runs the npm test script to validate passing and failing
8-
# testcases for the metaschema.
7+
# This workflow
8+
# - converts the YAML metaschemas to JSON
9+
# - runs the npm test script to validate passing and failing
10+
# testcases for the metaschemas
11+
# - checks in changed JSON files
912
#
1013

1114
# run this on push to any branch and creation of pull-requests
@@ -23,13 +26,19 @@ jobs:
2326
- uses: actions/checkout@v4 # checkout repo content
2427
with:
2528
fetch-depth: 0
29+
2630
- uses: actions/setup-node@v4 # setup Node.js
2731
with:
2832
node-version: '20.x'
33+
2934
- name: Install dependencies from main
3035
run: |
3136
git checkout remotes/origin/main -- package.json package-lock.json
3237
npm ci
38+
39+
- name: convert YAML metaschemas to JSON
40+
run: find schemas/v3* -type f -name "*.yaml" | xargs node scripts/yaml2json/yaml2json.js
41+
3342
- name: Run tests
3443
run: npm run test
3544

0 commit comments

Comments
 (0)