Merge pull request #599 from maykinmedia/feature/475/bijlage-klantcon… #882
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: OAS | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - stable/* | |
| tags: | |
| - '*' | |
| pull_request: | |
| workflow_dispatch: | |
| # least privilege as default, should be overridden per job if necessary | |
| permissions: | |
| contents: read | |
| jobs: | |
| oas: | |
| name: Checks | |
| strategy: | |
| matrix: | |
| component: | |
| - contactgegevens | |
| - klantinteracties | |
| uses: maykinmedia/open-api-workflows/.github/workflows/oas.yml@v6 | |
| with: | |
| python-version: '3.12' | |
| django-settings-module: openklant.conf.ci | |
| oas-generate-command: >2 | |
| bin/generate_schema_for_component.sh ${{ matrix.component }} | |
| src/openklant/components/${{ matrix.component }}/openapi.yaml | |
| schema-path: src/openklant/components/${{ matrix.component }}/openapi.yaml | |
| oas-artifact-name: ${{ matrix.component }}-api-oas | |
| node-version-file: '.nvmrc' | |
| spectral-version: '^6.15.0' | |
| openapi-to-postman-version: '^5.0.0' | |
| postman-artifact-name: ${{ matrix.component }}-api-postman-collection | |
| openapi-generator-version: '^2.20.0' | |
| spectral-ruleset: https://static.developer.overheid.nl/adr/2.1/ruleset.yaml |