mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 11:12:52 +00:00
feat: replace route markdown with openapi
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user