NPA-4689 Add GET /QuestionnaireResponse Endpoint To Sandbox
#168
Workflow file for this run
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: Open API Validate | |
| "on": | |
| pull_request: | |
| branches: [master] | |
| permissions: | |
| contents: read | |
| jobs: | |
| TestEndpointSchemas: | |
| name: Test Endpoint Schemas | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| endpoint: | |
| [ | |
| { | |
| name: "GET /Consent", | |
| make_target: "schema-get-consent", | |
| }, | |
| { | |
| name: "POST /Consent", | |
| make_target: "schema-post-consent", | |
| }, | |
| { | |
| name: "PATCH /Consent", | |
| make_target: "schema-patch-consent", | |
| }, | |
| { | |
| name: "GET /RelatedPerson", | |
| make_target: "schema-related-person", | |
| }, | |
| { | |
| name: "POST /Questionnaire", | |
| make_target: "schema-questionnaire", | |
| }, | |
| { | |
| name: "GET /Questionnaire", | |
| make_target: "schema-get-questionnaire", | |
| }, | |
| { name: "Errors", make_target: "schema-errors" }, | |
| ] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.9 | |
| - name: Install Poetry | |
| shell: bash | |
| run: | | |
| pipx install poetry==1.8.5 | |
| - name: Install Script Packages with Poetry | |
| shell: bash | |
| run: | | |
| poetry install --all-extras | |
| - name: Run Python script for all files | |
| run: | | |
| make ${{ matrix.endpoint.make_target }} |