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 6, 2025
1 parent 95b727c commit 2a2f042
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/oas-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,19 @@ name: check-oas

on:
push:
paths:
- "src/openklant/components/*/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
uses: maykinmedia/open-api-workflows/.github/workflows/oas-check.yml@v5.0.0
strategy:
matrix:
component:
- contactgegevens
- klantinteracties
with:
schema-path: 'src/openklant/components/${{ matrix.component }}/openapi.yaml'
schema-command: 'spectacular_for_component'
schema-options: "--component ${{ matrix.component }}"
schema-command: 'bin/generate_schema_for_component.sh'
schema-options: "${{ matrix.component }} src/openklant/components/${{ matrix.component }}/openapi.yaml"
python-version: '3.11'
django-settings-module: 'openklant.conf.ci'

0 comments on commit 2a2f042

Please sign in to comment.