Skip to content

Commit aa19c6b

Browse files
committed
ci: add generation step
TICKET: WP-6702
1 parent 97f4849 commit aa19c6b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ jobs:
402402
run: yarn run postinstall
403403

404404
- name: Install OpenAPI Generator at root
405-
run: yarn add --dev -W @api-ts/openapi-generator@v5
405+
run: yarn add -W @api-ts/openapi-generator@v5
406406

407407
- name: Download and install vacuum v0.18.1
408408
run: |
@@ -417,6 +417,14 @@ jobs:
417417
sudo mv vacuum /usr/local/bin/
418418
vacuum version
419419
420+
- name: Generate API spec
421+
working-directory: modules/express
422+
run: |
423+
../../node_modules/.bin/openapi-generator \
424+
--codec-file openapi-generator.rc.js \
425+
src/typedRoutes/api/index.ts \
426+
> api-generated.json
427+
420428
- name: Audit with Vacuum
421429
working-directory: modules/express
422430
run: |

0 commit comments

Comments
 (0)