Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@ jobs:
with:
node-version: "22"
- name: Manifests match the schema
run: >-
npx --yes ajv-cli@5 validate --spec=draft2020 --strict=false
-s v1/schema.json -d "connectors/*/connector.json"
- name: Directories, icons and marks
# ajv exits non-zero on a glob with no matches, and connectors/ may
# hold no community connector yet.
run: |
args=(-d "examples/*/connector.json" -d template/connector/connector.json)
if compgen -G "connectors/*/connector.json" > /dev/null; then
args+=(-d "connectors/*/connector.json")
fi
npx --yes ajv-cli@5 validate --spec=draft2020 --strict=false -s v1/schema.json "${args[@]}"
- name: Directories, icons, marks, routes and expectations
run: node scripts/check-connectors.mjs
- name: Scripts and parity vectors
run: node --test "scripts/test/*.test.mjs"
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"json.schemas": [
{
"fileMatch": ["connectors/*/connector.json", "template/connector/connector.json"],
"fileMatch": ["connectors/*/connector.json", "examples/*/connector.json", "template/connector/connector.json"],
"url": "./v1/schema.json"
}
]
Expand Down
Loading
Loading