Skip to content

Commit

Permalink
[PRMP-1401] add condition to not build mns lambda on sandbox (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
NogaNHS authored Jan 8, 2025
1 parent ad25b30 commit bc66a60
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/base-lambdas-reusable-deploy-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ on:
required: true
type: 'string'
sandbox:
description: 'Which Sandbox to push to'
description: 'Which Sandbox to push to?'
required: true
type: 'string'
is_sandbox:
description: 'Is this deploying to a sandbox?'
required: false
default: false
type: boolean
secrets:
AWS_ASSUME_ROLE:
required: true
Expand Down Expand Up @@ -403,6 +408,7 @@ jobs:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}

deploy_mns_notification_lambda:
if: ${{ ! inputs.is_sandbox }}
name: Deploy mns notification lambda
uses: ./.github/workflows/base-lambdas-reusable-deploy.yml
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/full-deploy-to-sandbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
sandbox: ${{ inputs.sandbox }}
environment: ${{ inputs.environment }}
python_version: "3.11"
is_sandbox: true
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lambdas-deploy-feature-to-sandbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
python_version: "3.11"
build_branch: ${{ inputs.build_branch }}
sandbox: ${{ inputs.sandbox }}
is_sandbox: true
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}

Expand Down
1 change: 0 additions & 1 deletion lambdas/tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ def set_env(monkeypatch):
monkeypatch.setenv("NRL_SQS_QUEUE_URL", NRL_SQS_URL)



EXPECTED_PARSED_PATIENT_BASE_CASE = PatientDetails(
givenName=["Jane"],
familyName="Smith",
Expand Down

0 comments on commit bc66a60

Please sign in to comment.