Skip to content

Commit

Permalink
Merge pull request #188 from ministryofjustice/SP-2468
Browse files Browse the repository at this point in the history
SP-2468 - Deploy to, and smoke test the development environment on the path to live #minor
  • Loading branch information
sixdaysandy authored Dec 4, 2024
2 parents 93adc39 + 2b2751a commit 8351c33
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/workflow_path_to_live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,42 @@ jobs:
semver_tag: ${{ needs.set_variables.outputs.semver_tag }}
secrets: inherit # pragma: allowlist secret

terraform_development_environment_apply:
name: Terraform - Development - Environment - Apply
needs:
- set_variables
- docker_build_scan_push
uses: ministryofjustice/opg-github-workflows/.github/workflows/[email protected]
with:
terraform_version: ${{ needs.set_variables.outputs.environment_terraform_version }}
terraform_directory: "./terraform/environment"
terraform_workspace: development
is_ephemeral: false
terraform_apply: true
terraform_variables: "-var=lambda_image_uri=${{ needs.docker_build_scan_push.outputs.ecr_image_uri }}"
secrets:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID_ACTIONS: ${{ secrets.AWS_ACCESS_KEY_ID_ACTIONS }}
AWS_SECRET_ACCESS_KEY_ACTIONS: ${{ secrets.AWS_SECRET_ACCESS_KEY_ACTIONS }}
PAGERDUTY_TOKEN: ""

smoke_test_development:
name: Smoke test Development
uses: ./.github/workflows/_integration_tests.yml
needs: terraform_development_environment_apply
with:
data_lpa_api_url: "https://dev.lpa.api.opg.service.justice.gov.uk/v1"
working_directory: "./integration_tests"
tests_directory: "./integration_tests/v1"
specific_tests: "./v1/test_healthcheck.py"
secrets: inherit

terraform_preprod_environment_apply:
name: Terraform - Preproduction - Environment - Apply
needs:
- set_variables
- docker_build_scan_push
- smoke_test_development
uses: ministryofjustice/opg-github-workflows/.github/workflows/[email protected]
with:
terraform_version: ${{ needs.set_variables.outputs.environment_terraform_version }}
Expand All @@ -68,7 +99,7 @@ jobs:
PAGERDUTY_TOKEN: ""

smoke_test_preprod:
name: Smoke test
name: Smoke test Preproduction
uses: ./.github/workflows/_integration_tests.yml
needs: terraform_preprod_environment_apply
with:
Expand Down

0 comments on commit 8351c33

Please sign in to comment.