mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-21 05:23: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
|
||||
./scripts/generate-matrix-org-assets
|
||||
|
||||
validateapi: &validateapi
|
||||
name: Validate OpenAPI specifications
|
||||
command: |
|
||||
cd api
|
||||
npm install
|
||||
node validator.js -s "client-server"
|
||||
|
||||
version: 2
|
||||
jobs:
|
||||
validate-docs:
|
||||
docker:
|
||||
- image: node:alpine
|
||||
steps:
|
||||
- checkout
|
||||
- run: *validateapi
|
||||
check-docs:
|
||||
docker:
|
||||
- image: uhoreg/matrix-doc-build
|
||||
|
|
@ -81,6 +93,7 @@ workflows:
|
|||
- build-docs
|
||||
- build-swagger
|
||||
- check-docs
|
||||
- validate-docs
|
||||
|
||||
notify:
|
||||
webhooks:
|
||||
|
|
|
|||
Loading…
Reference in a new issue