feat: replace route markdown with openapi

This commit is contained in:
Rainer Killinger
2021-07-06 10:51:05 +02:00
parent a1e820336f
commit f4bf7abc89
9 changed files with 262 additions and 129 deletions

View File

@@ -44,18 +44,18 @@ scheduled-audit:
only:
- schedules
routes:
openapi:
dependencies:
- build
stage: test
script:
- npm install @openstapps/core
- node lib/cli.js routes node_modules/@openstapps/core/lib routes.md
- NUMBER_OF_LINES=$(cat routes.md | wc -l)
- node lib/cli.js openapi node_modules/@openstapps/core/lib openapi
- NUMBER_OF_LINES=$(cat openapi/openapi.json | wc -l)
- if [ "$NUMBER_OF_LINES" -lt 100 ]; then exit 1; fi
artifacts:
paths:
- routes.md
- openapi/openapi.json
mapping:
dependencies: