Files
windmill/.github/workflows/yaml-validator-tests.yml
Ruben Fiszel a372ae0c04 fix(cli): lint against the checkout's schema, not the published validator (#10418)
* fix(cli): lint against the checkout's schema, not the published validator

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(cli): mirror the permissioned_as exclusion into agent guidance

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* chore: version windmill-yaml-validator with the release, publish by hand

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* chore: generate schemas with the validator's own yaml parser

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(cli): declare ajv, no longer reaching tests via the validator

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix: fail schema generation on a spec YAML syntax error

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-30 23:33:35 +02:00

38 lines
979 B
YAML

name: YAML validator tests
# The schemas behind `wmill lint` are generated from the OpenAPI specs, so a spec change
# can turn a valid synced file into a lint error without touching any validator code.
on:
push:
branches: [main]
paths:
- "windmill-yaml-validator/**"
- "openflow.openapi.yaml"
- "backend/windmill-api/openapi.yaml"
- ".github/workflows/yaml-validator-tests.yml"
pull_request:
paths:
- "windmill-yaml-validator/**"
- "openflow.openapi.yaml"
- "backend/windmill-api/openapi.yaml"
- ".github/workflows/yaml-validator-tests.yml"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
working-directory: windmill-yaml-validator
run: npm ci
- name: Run tests
working-directory: windmill-yaml-validator
run: npm test