Skip to content

workflow_run II

workflow_run II #207

name: Continuous Deployment Pipeline

Check failure on line 1 in .github/workflows/continuous-deployment.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/continuous-deployment.yml

Invalid workflow file

(Line: 10, Col: 5): Required property is missing: runs-on
on:
workflow_run:
workflows: [Quality Checks]
types: [completed]
jobs:
on-quality-checks-success:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- run: echo 'The Quality Checks workflow passed'
deploy-internal-dev-backend:
needs: [on-quality-checks-success]
uses: ./.github/workflows/deploy-backend.yml
with:
apigee_environment: internal-dev
create_mns_subscription: true
environment: dev
sub_environment: internal-dev
run-internal-dev-sandbox-tests:
# Technically the first step is not a pre-requisite - sandbox backend deployment is handled by APIM
# Stipulating this condition simply makes it more likely the environment will be ready when tests are invoked
needs: [deploy-internal-dev-backend]
uses: ./.github/workflows/run-e2e-automation-tests.yml
with:
apigee_environment: internal-dev-sandbox
environment: dev
sub_environment: internal-dev-sandbox
service_under_test: all
suite_to_run: sandbox
secrets:
APIGEE_PASSWORD: ${{ secrets.APIGEE_PASSWORD }}
APIGEE_BASIC_AUTH_TOKEN: ${{ secrets.APIGEE_BASIC_AUTH_TOKEN }}
APIGEE_OTP_KEY: ${{ secrets.APIGEE_OTP_KEY }}
CIS2_E2E_USERNAME: ${{ secrets.CIS2_E2E_USERNAME }}
STATUS_API_KEY: ${{ secrets.STATUS_API_KEY }}
run-sandbox-tests:
needs: [run-internal-dev-sandbox-tests]
uses: ./.github/workflows/run-e2e-automation-tests.yml
with:
apigee_environment: sandbox
environment: dev
sub_environment: sandbox
service_under_test: all
suite_to_run: sandbox
secrets:
APIGEE_PASSWORD: ${{ secrets.APIGEE_PASSWORD }}
APIGEE_BASIC_AUTH_TOKEN: ${{ secrets.APIGEE_BASIC_AUTH_TOKEN }}
APIGEE_OTP_KEY: ${{ secrets.APIGEE_OTP_KEY }}
CIS2_E2E_USERNAME: ${{ secrets.CIS2_E2E_USERNAME }}
STATUS_API_KEY: ${{ secrets.STATUS_API_KEY }}
run-internal-dev-tests:
needs: [deploy-internal-dev-backend]
uses: ./.github/workflows/run-e2e-automation-tests.yml
with:
apigee_environment: internal-dev
environment: dev
sub_environment: internal-dev
service_under_test: all
suite_to_run: smoke
secrets:
APIGEE_PASSWORD: ${{ secrets.APIGEE_PASSWORD }}
APIGEE_BASIC_AUTH_TOKEN: ${{ secrets.APIGEE_BASIC_AUTH_TOKEN }}
APIGEE_OTP_KEY: ${{ secrets.APIGEE_OTP_KEY }}
CIS2_E2E_USERNAME: ${{ secrets.CIS2_E2E_USERNAME }}
STATUS_API_KEY: ${{ secrets.STATUS_API_KEY }}
deploy-higher-dev-envs:
needs: [run-internal-dev-tests]
strategy:
matrix:
sub_environment_name: [ref, internal-qa]
uses: ./.github/workflows/deploy-backend.yml
with:
apigee_environment: ${{ matrix.sub_environment_name }}
create_mns_subscription: true
environment: dev
sub_environment: ${{ matrix.sub_environment_name }}
run-higher-dev-env-tests:
needs: [deploy-higher-dev-envs]
strategy:
matrix:
sub_environment_name: [ref, internal-qa]
include:
- sub_environment_name: ref
required_test_suite: proxy_smoke
- sub_environment_name: internal-qa
required_test_suite: smoke
uses: ./.github/workflows/run-e2e-automation-tests.yml
with:
apigee_environment: ${{ matrix.sub_environment_name }}
environment: dev
sub_environment: ${{ matrix.sub_environment_name }}
service_under_test: all
suite_to_run: ${{ matrix.required_test_suite }}
secrets:
APIGEE_PASSWORD: ${{ secrets.APIGEE_PASSWORD }}
APIGEE_BASIC_AUTH_TOKEN: ${{ secrets.APIGEE_BASIC_AUTH_TOKEN }}
APIGEE_OTP_KEY: ${{ secrets.APIGEE_OTP_KEY }}
CIS2_E2E_USERNAME: ${{ secrets.CIS2_E2E_USERNAME }}
STATUS_API_KEY: ${{ secrets.STATUS_API_KEY }}