@@ -264,6 +264,53 @@ jobs:
264264 - name : Run Integration Tests
265265 run : make test-features-integration TF_WORKSPACE_NAME=${{ needs.set-environment-id.outputs.environment_id }}
266266
267+ smoke-test :
268+ name : Run Smoke Tests
269+ needs : [set-environment-id, integration-test]
270+ environment : pull-request
271+ runs-on : [self-hosted, ci]
272+ steps :
273+ - name : Git Clone - ${{ github.event.pull_request.head.ref }}
274+ uses : actions/checkout@v4
275+ with :
276+ ref : ${{ github.event.pull_request.head.ref }}
277+
278+ - name : Setup asdf cache
279+ uses : actions/cache@v4
280+ with :
281+ path : ~/.asdf
282+ key : ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
283+ restore-keys : |
284+ ${{ runner.os }}-asdf-
285+
286+ - name : Install asdf and tools
287+ uses :
asdf-vm/actions/[email protected] 288+ with :
289+ asdf_branch : v0.13.1
290+
291+ - name : Setup Python environment
292+ run : |
293+ poetry install --no-root
294+ source $(poetry env info --path)/bin/activate
295+
296+ - name : Configure Management Credentials
297+ uses : aws-actions/configure-aws-credentials@v4
298+ with :
299+ aws-region : eu-west-2
300+ role-to-assume : ${{ secrets.MGMT_ROLE_ARN }}
301+ role-session-name : github-actions-ci-${{ needs.set-environment-id.outputs.environment_id }}
302+
303+ - name : Terraform Init
304+ run : |
305+ terraform -chdir=terraform/infrastructure init
306+ terraform -chdir=terraform/infrastructure workspace new ${{ needs.set-environment-id.outputs.environment_id }} || \
307+ terraform -chdir=terraform/infrastructure workspace select ${{ needs.set-environment-id.outputs.environment_id }}
308+
309+ - name : Smoke Test
310+ run : |
311+ make ENV=dev truststore-pull-client
312+ make ENV=dev TF_WORKSPACE_NAME=${{ needs.set-environment-id.outputs.environment_id }} test-smoke-internal
313+
267314 performance-test :
268315 name : Run Performance Tests
269316 needs : [set-environment-id, integration-test]
0 commit comments