Skip to content

Commit 0e28f12

Browse files
committed
chore: add validator package.json and update GHA
1 parent 32b785d commit 0e28f12

File tree

4 files changed

+1958
-4
lines changed

4 files changed

+1958
-4
lines changed

.github/workflows/spectral-lint.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ jobs:
44
lint:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v3
8-
- uses: actions/setup-node@v3
9-
- name: spectral-lint
10-
run: ./validator/scripts/validate-all.sh
7+
- uses: actions/checkout@v3
8+
- uses: actions/setup-node@v3
9+
- name: Install yarn
10+
run: npm install -g yarn
11+
- name: yarn
12+
working-directory: ./validator
13+
run: yarn install --immutable
14+
- name: spectral-lint
15+
working-directory: ./validator
16+
run: yarn lint

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.DS_Store
22

3+
node_modules
4+
35
# JetBrains generated files
46
.idea

validator/package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "xero-openapi-validator",
3+
"version": "1.0.0",
4+
"description": "Validation for Xero OpenAPI specifications using Spectral",
5+
"type": "module",
6+
"scripts": {
7+
"lint": "spectral lint '../xero*.yaml'"
8+
},
9+
"dependencies": {
10+
"@stoplight/spectral-cli": "^6.0.0",
11+
"@stoplight/spectral-owasp-ruleset": "2.0.1"
12+
}
13+
}

0 commit comments

Comments
 (0)