File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments