Change the testing API /api/testing/vaccinations-search-in-nhs to a polling approach #2112
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: End-to-end tests | |
| on: [pull_request] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.head.ref }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| aws-e2e-flow: | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| name: AWS | |
| permissions: | |
| id-token: write | |
| contents: write | |
| uses: ./.github/workflows/end-to-end-tests-aws.yml | |
| with: | |
| git_reference_for_database_image: ${{ github.base_ref }} | |
| git_reference_for_application_image: ${{ github.head_ref }} | |
| local-e2e-flow: | |
| if: github.event.pull_request.head.repo.full_name != github.repository | |
| name: Local | |
| uses: ./.github/workflows/end-to-end-tests-local.yml | |
| ensure-run-success: | |
| name: Ensure E2E tests ran successfully | |
| runs-on: ubuntu-latest | |
| needs: [aws-e2e-flow, local-e2e-flow] | |
| if: always() | |
| steps: | |
| - name: Fail if neither end-to-end job succeeded | |
| if: | | |
| needs.aws-e2e-flow.result != 'success' && | |
| needs.local-e2e-flow.result != 'success' | |
| run: exit 1 |