mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-20 21:13:42 +01:00
Run the validator on the spec
This commit is contained in:
parent
b67f544026
commit
791a2f2b17
|
|
@ -38,9 +38,21 @@ genmatrixassets: &genmatrixassets
|
||||||
source /env/bin/activate
|
source /env/bin/activate
|
||||||
./scripts/generate-matrix-org-assets
|
./scripts/generate-matrix-org-assets
|
||||||
|
|
||||||
|
validateapi: &validateapi
|
||||||
|
name: Validate OpenAPI specifications
|
||||||
|
command: |
|
||||||
|
cd api
|
||||||
|
npm install
|
||||||
|
node validator.js -s "client-server"
|
||||||
|
|
||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
|
validate-docs:
|
||||||
|
docker:
|
||||||
|
- image: node:alpine
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run: *validateapi
|
||||||
check-docs:
|
check-docs:
|
||||||
docker:
|
docker:
|
||||||
- image: uhoreg/matrix-doc-build
|
- image: uhoreg/matrix-doc-build
|
||||||
|
|
@ -81,6 +93,7 @@ workflows:
|
||||||
- build-docs
|
- build-docs
|
||||||
- build-swagger
|
- build-swagger
|
||||||
- check-docs
|
- check-docs
|
||||||
|
- validate-docs
|
||||||
|
|
||||||
notify:
|
notify:
|
||||||
webhooks:
|
webhooks:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue