Skip to content

Commit 98f6036

Browse files
committed
[#513] update oas-check CI workflow
1 parent 2ac5f74 commit 98f6036

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/oas-check.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@ on:
1212
jobs:
1313
open-api-workflow-check-oas:
1414
uses: maykinmedia/open-api-workflows/.github/workflows/oas-check.yml@v1
15+
strategy:
16+
matrix:
17+
version:
18+
- v1
19+
- v2
1520
with:
16-
schema-path: 'src/objects/api/v2/openapi.yaml'
21+
schema-command: 'spectacular --validate --api-version ${{ matrix.version }}'
22+
schema-path: 'src/objects/api/${{ matrix.version }}/openapi.yaml'
1723
python-version: '3.11'
1824
django-settings-module: 'objects.conf.ci'
1925
apt-packages: 'libgdal-dev gdal-bin'

0 commit comments

Comments
 (0)