Skip to content

Commit d15fcae

Browse files
committed
[NRL-000] Fix up smoke tests to use TF to get domain
1 parent db37396 commit d15fcae

File tree

1 file changed

+46
-41
lines changed

1 file changed

+46
-41
lines changed

.github/workflows/pr-env-deploy.yml

Lines changed: 46 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -264,47 +264,52 @@ 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-
273-
# steps:
274-
# - name: Git Clone - ${{ github.event.pull_request.head.ref }}
275-
# uses: actions/checkout@v4
276-
# with:
277-
# ref: ${{ github.event.pull_request.head.ref }}
278-
279-
# - name: Setup asdf cache
280-
# uses: actions/cache@v4
281-
# with:
282-
# path: ~/.asdf
283-
# key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
284-
# restore-keys: |
285-
# ${{ runner.os }}-asdf-
286-
287-
# - name: Install asdf and tools
288-
# uses: asdf-vm/actions/[email protected]
289-
# with:
290-
# asdf_branch: v0.13.1
291-
292-
# - name: Setup Python environment
293-
# run: |
294-
# poetry install --no-root
295-
# source $(poetry env info --path)/bin/activate
296-
297-
# - name: Configure Management Credentials
298-
# uses: aws-actions/configure-aws-credentials@v4
299-
# with:
300-
# aws-region: eu-west-2
301-
# role-to-assume: ${{ secrets.MGMT_ROLE_ARN }}
302-
# role-session-name: github-actions-ci-${{ needs.set-environment-id.outputs.environment_id }}
303-
304-
# - name: Smoke Test
305-
# run: |
306-
# make ENV=dev truststore-pull-client
307-
# make ENV=dev TF_WORKSPACE_NAME=${{ needs.set-environment-id.outputs.environment_id }} test-smoke-internal
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
308313
309314
performance-test:
310315
name: Run Performance Tests

0 commit comments

Comments
 (0)