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