Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/schema-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: schema-test
# Issue: https://github.com/OAI/OpenAPI-Specification/pull/2489

#
# This workflow runs the npm test script to validate passing and failing
# testcases for the metaschemas
#
# This workflow
# - converts the YAML metaschemas to JSON
# - runs the npm test script to validate passing and failing testcases for the metaschemas

# run this on push to any branch and creation of pull-requests
on:
Expand All @@ -33,5 +33,8 @@ jobs:
git checkout remotes/origin/main -- package.json package-lock.json
npm ci

- name: convert YAML metaschemas to JSON
run: find schemas/v3* -type f -name "*.yaml" | xargs node scripts/yaml2json/yaml2json.js

- name: Run tests
run: npm run test
Loading