Skip to content

main | ndrst | development | true #1125

main | ndrst | development | true

main | ndrst | development | true #1125

name: "SANDBOX Lambdas - Deploy Feature Branch to Sandbox"
run-name: "${{ github.event.inputs.build_branch }} | ${{ github.event.inputs.sandbox }} | ${{ github.event.inputs.environment }} | ${{ github.event.inputs.mock_login_enabled }}"
on:
workflow_dispatch:
inputs:
build_branch:
description: "Feature branch to push to test?"
required: true
type: "string"
default: "main"
sandbox:
description: "Which Sandbox to push to."
required: true
type: "string"
default: "ndr"
environment:
description: "Which Environment settings to use."
required: true
type: "string"
default: "development"
mock_login_enabled:
description: "Do you want to deploy with mock login enabled?"
required: true
type: boolean
default: true
workflow_call:
inputs:
build_branch:
description: "Feature branch to push to test?"
required: true
type: "string"
default: "main"
sandbox:
description: "Which Sandbox to push to."
required: true
type: "string"
default: "ndr"
environment:
description: "Which Environment settings to use."
required: true
type: "string"
default: "development"
mock_login_enabled:
description: "Do you want to deploy with mock login enabled?"
required: true
type: boolean
default: true
secrets:
AWS_ASSUME_ROLE:
required: true
permissions:
pull-requests: write
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
run_tests:
name: Run all python tests
uses: ./.github/workflows/base-lambdas-reusable-test.yml
with:
python_version: "3.11"
build_branch: ${{ inputs.build_branch }}
publish_all_lambda_layers:
name: Publish all Lambda Layers
uses: ./.github/workflows/base-lambda-layer-reusable-publish-all.yml
with:
build_branch: ${{ inputs.build_branch }}
sandbox: ${{ inputs.sandbox }}
environment: ${{ inputs.environment }}
python_version: "3.11"
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
deploy_all_lambdas:
name: Deploy all Lambdas
uses: ./.github/workflows/base-lambdas-reusable-deploy-all.yml
needs: ["publish_all_lambda_layers"]
with:
environment: ${{ inputs.environment }}
python_version: "3.11"
build_branch: ${{ inputs.build_branch }}
sandbox: ${{ inputs.sandbox }}
is_sandbox: true
mock_login_enabled: ${{ inputs.mock_login_enabled }}
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
disable_fhir_stub:
name: "Disable PDS stub"
uses: "./.github/workflows/base-run-disable-pds-stub.yml"
needs: ["deploy_all_lambdas"]
with:
environment: ${{ inputs.environment }}
sandbox: ${{ inputs.sandbox }}
base_branch: ${{ inputs.build_branch }}
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
run_lg_e2etest:
uses: ./.github/workflows/base-e2e-backendtest.yml
needs: ["deploy_all_lambdas", "disable_fhir_stub"]
with:
build_branch: ${{ inputs.build_branch }}
environment: development
sandbox: ${{ inputs.sandbox }}
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
run_pdm_e2etest:
uses: ./.github/workflows/base-e2e-fhir-backendtest.yml
needs: ["deploy_all_lambdas", "disable_fhir_stub"]
with:
build_branch: ${{ inputs.build_branch }}
environment: development
sandbox: ${{ inputs.sandbox }}
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}