Skip to content

Commit d46a754

Browse files
committed
[NDR-313] Add environment settings to workflow
1 parent 0187657 commit d46a754

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.github/workflows/ndr-e2e-test-sandbox.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,21 @@ on:
1212
description: "Sandbox environment"
1313
required: true
1414
default: "ndr"
15-
workflow_call:
16-
inputs:
17-
build_branch:
18-
description: "Branch with smoke tests."
19-
required: true
20-
type: "string"
21-
sandbox:
22-
description: "Sandbox to push code to"
15+
environment:
16+
description: Which environment settings to use?
2317
required: true
2418
type: string
25-
secrets:
26-
AWS_ASSUME_ROLE:
27-
required: true
19+
default: development
2820

2921
permissions:
3022
pull-requests: write
3123
id-token: write
3224
contents: read
3325

26+
env:
27+
SANDBOX: ${{ inputs.sandbox }}
28+
AWS_REGION: ${{ vars.AWS_REGION }}
29+
3430
jobs:
3531
services-e2etest:
3632
uses: ./.github/workflows/base-e2e-backendtest.yml
@@ -40,6 +36,7 @@ jobs:
4036
sandbox: ${{ inputs.sandbox }}
4137
secrets:
4238
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
39+
4340
services-fhir-api-e2etest:
4441
uses: ./.github/workflows/base-e2e-fhir-backendtest.yml
4542
with:
@@ -49,9 +46,9 @@ jobs:
4946
secrets:
5047
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
5148

52-
5349
notify-slack:
5450
runs-on: ubuntu-latest
51+
environment: ${{ inputs.environment }}
5552
needs: [services-e2etest, services-fhir-api-e2etest]
5653
if: always()
5754
steps:

0 commit comments

Comments
 (0)