Skip to content

Merge branch 'main' of github.com:bundesAPI/klinikatlas-api #13

Merge branch 'main' of github.com:bundesAPI/klinikatlas-api

Merge branch 'main' of github.com:bundesAPI/klinikatlas-api #13

Workflow file for this run

on:
push:
paths:
- "openapi*.yaml"
pull_request:
paths:
- "openapi*.yaml"
workflow_dispatch:
jobs:
schemathesis:
name: "Perform schemathesis checks"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.8"
- run: pip install schemathesis
- name: "Extract base url from openapi.yaml"
uses: mikefarah/yq@master
with:
cmd: echo "base_url=$(yq -r .servers[].url openapi.yaml)" >> $GITHUB_ENV
- run: schemathesis run ./openapi.yaml --base-url "${{ env.base_url }}" --checks all