mirror of
https://github.com/SpaceTradersAPI/api-docs.git
synced 2024-11-14 22:30:51 +01:00
Add a github action that generates a couple of clients using openapi generator (#60)
Adds a quick layer of validation at CI level.
This commit is contained in:
parent
b792362027
commit
0d7bb3cca9
26
.github/workflows/validate.yml
vendored
Normal file
26
.github/workflows/validate.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Validate OpenAPI Spec
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
generate:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Generate Clients
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Typescript Axios
|
||||||
|
uses: openapi-generators/openapitools-generator-action@v1
|
||||||
|
with:
|
||||||
|
generator: typescript-axios
|
||||||
|
openapi-file: ./reference/SpaceTraders.json
|
||||||
|
|
||||||
|
- name: Dart
|
||||||
|
uses: openapi-generators/openapitools-generator-action@v1
|
||||||
|
with:
|
||||||
|
generator: dart
|
||||||
|
openapi-file: ./reference/SpaceTraders.json
|
Loading…
Reference in New Issue
Block a user