Verify OpenAPI Spec #135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Verify OpenAPI Spec | |
on: | |
workflow_dispatch: | |
workflow_run: | |
workflows: | |
- "Stage" | |
types: | |
- completed | |
repository_dispatch: | |
types: [ backend-openapi-spec-modified ] | |
jobs: | |
verify_no_generated: | |
runs-on: ubuntu-latest | |
name: Verify Backend OpenAPI Spec | |
environment: integration | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install node 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
- name: Install project dev modules | |
run: npm ci --include=dev | |
- name: Generate OpenAPI types | |
run: npm run gen:backend | |
- name: Verify nothing was changed | |
run: git diff -s --exit-code |