From 8f580d058c4db9f2c207309f7e2ba6609baa3db6 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Thu, 9 Jan 2025 13:18:44 +0100 Subject: [PATCH] [#513] update oas-check CI workflow --- .github/workflows/oas-check.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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'