Skip to content

Commit 8b2dc94

Browse files
committed
feat(tests): add schema test coverage
* remove json version of schema * add package-lock.json * mistakenly removed validate-markdown gh action reused from OAS/Overlay projects
1 parent d02cff6 commit 8b2dc94

16 files changed

Lines changed: 4303 additions & 840 deletions
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: schema-tests
2+
3+
# Author: @MikeRalphson / runs @jdesrosiers tests
4+
# Issue: https://github.com/OAI/OpenAPI-Specification/pull/2489
5+
6+
#
7+
# This workflow runs the npm test script to validate passing and failing
8+
# testcases for the metaschemas
9+
#
10+
11+
# run this on push to any branch and creation of pull-requests
12+
on:
13+
push: {}
14+
pull_request: {}
15+
workflow_dispatch: {}
16+
17+
jobs:
18+
test:
19+
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v4 # checkout repo content
24+
with:
25+
fetch-depth: 0
26+
27+
- uses: actions/setup-node@v4 # setup Node.js
28+
with:
29+
node-version: '20.x'
30+
31+
- name: Install dependencies from main
32+
run: |
33+
# git checkout remotes/origin/main -- package.json package-lock.json #TODO: uncomment with subsequent PR
34+
npm ci
35+
- name: Run tests
36+
run: npm test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ node_modules/
99
deploy/
1010
history
1111
Gemfile.lock
12+
coverage/

0 commit comments

Comments
 (0)