Skip to content

Verify OpenAPI Spec #135

Verify OpenAPI Spec

Verify OpenAPI Spec #135

Workflow file for this run

---
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