Use URL of proxy #10
This file contains 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
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 |