Skip to content

Commit

Permalink
👷 [maykinmedia/open-api-framework#115] Always run OAS check
Browse files Browse the repository at this point in the history
to verify that the schema is up to date
  • Loading branch information
stevenbal committed Mar 7, 2025
1 parent 88f5939 commit b1f2387
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/check-oas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,15 @@ name: check-oas

on:
push:
paths:
- "src/objecttypes/api/*/openapi.yaml"
- .github/workflows/oas-check.yml
branches:
- '**'
workflow_dispatch:

jobs:
open-api-workflow-check-oas:
uses: maykinmedia/open-api-workflows/.github/workflows/oas-check.yml@v1
strategy:
matrix:
version:
- v2
uses: maykinmedia/open-api-workflows/.github/workflows/oas-check.yml@v5.0.0
with:
schema-path: 'src/objecttypes/api/${{ matrix.version }}/openapi.yaml'
schema-path: 'src/objecttypes/api/v2/openapi.yaml'
schema-options: 'src/objecttypes/api/v2/openapi.yaml'
python-version: '3.11'
django-settings-module: 'objecttypes.conf.ci'
schema-command: bin/generate_schema.sh
apt-packages: 'libgdal-dev gdal-bin'

0 comments on commit b1f2387

Please sign in to comment.