diff --git a/.github/workflows/oas-check.yml b/.github/workflows/oas-check.yml index 0df85f2d..8162e961 100644 --- a/.github/workflows/oas-check.yml +++ b/.github/workflows/oas-check.yml @@ -12,8 +12,14 @@ on: jobs: open-api-workflow-check-oas: uses: maykinmedia/open-api-workflows/.github/workflows/oas-check.yml@v1 + strategy: + matrix: + version: + - v1 + - v2 with: - schema-path: 'src/objects/api/v2/openapi.yaml' + schema-command: 'spectacular --validate --api-version ${{ matrix.version }}' + schema-path: 'src/objects/api/${{ matrix.version }}/openapi.yaml' python-version: '3.11' django-settings-module: 'objects.conf.ci' apt-packages: 'libgdal-dev gdal-bin'