fix: regenerate OpenAPI spec from gateway schema fixes #35
Workflow file for this run
This file contains hidden or 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: Validate OpenAPI Spec | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Validate OpenAPI spec with Spectral | |
| run: npx @stoplight/spectral-cli@6.14.2 lint spec/openapi.yaml | |
| generate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install pipx | |
| run: pip install pipx | |
| - name: Run generation pipeline | |
| run: ./scripts/generate.sh | |
| - name: Verify TypeScript output exists | |
| run: test -f clients/typescript/generated/schema.d.ts | |
| - name: Verify Python output exists | |
| run: test -d clients/python/generated |