Skip to content

Commit

Permalink
feat(tests): add schema test coverage (#286)
Browse files Browse the repository at this point in the history
* remove json version of schema
* add package-lock.json
* update test case examples to use proper ABNF syntax

reused from OAS/Overlay projects
  • Loading branch information
jeremyfiel authored Dec 17, 2024
1 parent 40742b2 commit e5a1117
Show file tree
Hide file tree
Showing 15 changed files with 4,288 additions and 33 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/schema-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: schema-tests

# Author: @MikeRalphson / runs @jdesrosiers tests
# 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
#

# run this on push to any branch and creation of pull-requests
on:
push: {}
pull_request: {}
workflow_dispatch: {}

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4 # checkout repo content
with:
fetch-depth: 0

- uses: actions/setup-node@v4 # setup Node.js
with:
node-version: '20.x'

- name: Install dependencies from main
run: |
# git checkout remotes/origin/main -- package.json package-lock.json #TODO: uncomment with subsequent PR
npm ci
- name: Run tests
run: npm test
1 change: 0 additions & 1 deletion .github/workflows/validate-markdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ jobs:
node-version: '18.x'
- name: Validate markdown
run: npx mdv versions/1.*.md

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ node_modules/
deploy/
history
Gemfile.lock
coverage/
Loading

0 comments on commit e5a1117

Please sign in to comment.