VED-811 (Child of VED-720) Refactor PR and Release pipelines to move to GH Actions #21
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: PR Deploy and Test | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| deploy-pr-backend: | |
| uses: ./.github/workflows/deploy-backend.yml | |
| with: | |
| apigee_environment: internal-dev | |
| create_mns_subscription: true | |
| environment: dev | |
| sub_environment: pr-${{github.event.pull_request.number}} | |
| run-e2e-tests: | |
| needs: [deploy-pr-backend] | |
| strategy: | |
| matrix: | |
| apigee_environment_name: [internal-dev, internal-dev-sandbox] | |
| uses: ./.github/workflows/run-e2e-tests.yml | |
| with: | |
| apigee_environment: ${{ matrix.apigee_environment_name }} | |
| environment: dev | |
| sub_environment: pr-${{github.event.pull_request.number}} | |
| secrets: | |
| APIGEE_PASSWORD: ${{ secrets.APIGEE_PASSWORD }} | |
| APIGEE_BASIC_AUTH_TOKEN: ${{ secrets.APIGEE_BASIC_AUTH_TOKEN }} | |
| APIGEE_OTP_KEY: ${{ secrets.APIGEE_OTP_KEY }} | |
| STATUS_API_KEY: ${{ secrets.STATUS_API_KEY }} |