Skip to content

Commit 575b75f

Browse files
committed
Workflow for running the new tests
1 parent fbb4798 commit 575b75f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/examples-tests.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: schema-test
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 metaschema.
9+
#
10+
11+
# run this on push to any branch and creation of pull-requests
12+
on:
13+
push:
14+
paths:
15+
- 'examples/**'
16+
pull_request:
17+
paths:
18+
- 'examples/**'
19+
workflow_dispatch: {}
20+
21+
jobs:
22+
test:
23+
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- uses: actions/checkout@v4 # checkout repo content
28+
with:
29+
fetch-depth: 0
30+
- uses: actions/setup-node@v4 # setup Node.js
31+
with:
32+
node-version: '20.x'
33+
- name: Install dependencies from main
34+
run: |
35+
git checkout remotes/origin/main -- package.json package-lock.json
36+
npm ci
37+
- name: Run tests
38+
run: npm run test
39+

0 commit comments

Comments
 (0)