Skip to content

Merge pull request #220 from maykinmedia/feature/209-add-digitaaladre… #22

Merge pull request #220 from maykinmedia/feature/209-add-digitaaladre…

Merge pull request #220 from maykinmedia/feature/209-add-digitaaladre… #22

name: generate-postman-collection
on:
push:
paths:
- "src/openklant/components/*/openapi.yaml"
- ".github/workflows/generate-postman-collection.yml"
branches:
- '**'
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
component: ['contactgegevens', 'klantinteracties']
name: Run with component ${{ matrix.component }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm install -g openapi-to-postmanv2
- name: Create tests folder
run: mkdir -p ./tests/postman
- name: Generate Postman collection
run: openapi2postmanv2 -s ./src/openklant/components/${{ matrix.component }}/openapi.yaml -o ./tests/postman/collection.json --pretty