api-docs/.github/workflows/validate.yml
Justin Auger 0d7bb3cca9
Add a github action that generates a couple of clients using openapi generator (#60)
Adds a quick layer of validation at CI level.
2023-06-23 21:35:42 -07:00

27 lines
587 B
YAML

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