Skip to content

Commit e3586a9

Browse files
Feature/eja trial regression test workflow (#355)
* Amending regresion tests to see if can trigger without additional approval * amending regression test to install poetry into setup-python version of python * reverted python/poetry step (hopefully we didn't need to change this) added check-licenses to make file updated script * returned the echo which states which environment the tests will run in * moving pip-licences to dev dependencies * updating poetry lock * updated the other workflows that called the regression tests --------- Co-authored-by: Edd Almond <[email protected]>
1 parent a110bdf commit e3586a9

File tree

4 files changed

+26
-16
lines changed

4 files changed

+26
-16
lines changed

.github/workflows/base-deploy.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,12 @@ jobs:
267267
draft: false
268268
prerelease: false
269269

270-
- name: "Regression Tests"
271-
if: ${{ needs.metadata.outputs.environment == 'preprod' }}
272-
uses: ./.github/workflows/regression-tests.yml
273-
with:
274-
ENVIRONMENT: "preprod"
275-
VERSION_NUMBER: "main"
270+
regression-tests:
271+
name: "Regression Tests"
272+
if: ${{ needs.metadata.outputs.environment == 'preprod' }}
273+
needs: deploy
274+
uses: ./.github/workflows/regression-tests.yml
275+
with:
276+
ENVIRONMENT: "preprod"
277+
VERSION_NUMBER: "main"
278+
secrets: inherit

.github/workflows/cicd-2-publish.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,11 @@ jobs:
130130
title: "Pushed to main"
131131
version: "${{ needs.metadata.outputs.version }}"
132132
133-
- name: "Regression Tests"
134-
uses: ./.github/workflows/regression-tests.yml
135-
with:
136-
ENVIRONMENT: "dev"
137-
VERSION_NUMBER: "main"
133+
regression-tests:
134+
name: "Regression Tests"
135+
needs: publish
136+
uses: ./.github/workflows/regression-tests.yml
137+
with:
138+
ENVIRONMENT: "dev"
139+
VERSION_NUMBER: "main"
140+
secrets: inherit

.github/workflows/cicd-3-test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ jobs:
130130
echo "Running: make terraform env=$ENVIRONMENT workspace=$WORKSPACE stack=api-layer tf-command=apply"
131131
make terraform env=$ENVIRONMENT stack=api-layer tf-command=apply workspace=$WORKSPACE
132132
working-directory: ./infrastructure
133+
133134
regression-tests:
134135
name: "Regression Tests"
135136
needs: deploy

.github/workflows/cicd-3-test_auto.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,11 @@ jobs:
103103
make terraform env=$ENVIRONMENT stack=api-layer tf-command=apply workspace=$WORKSPACE
104104
working-directory: ./infrastructure
105105

106-
- name: "Regression Tests"
107-
uses: ./.github/workflows/regression-tests.yml
108-
with:
109-
ENVIRONMENT: "test"
110-
VERSION_NUMBER: "main"
106+
regression-tests:
107+
name: "Regression Tests"
108+
needs: deploy
109+
uses: ./.github/workflows/regression-tests.yml
110+
with:
111+
ENVIRONMENT: "test"
112+
VERSION_NUMBER: "main"
113+
secrets: inherit

0 commit comments

Comments
 (0)