Skip to content

Commit 9a8ea07

Browse files
moved the regression tests from a separate job to a step of the deploy job
1 parent 223b67d commit 9a8ea07

File tree

6 files changed

+33
-41
lines changed

6 files changed

+33
-41
lines changed

.github/workflows/base-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
required: false
1717
default: "patch"
1818
type: string
19-
secrets: {}
19+
secrets: inherit
2020

2121
jobs:
2222
metadata:

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

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

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,9 @@ jobs:
129129
make terraform env=$ENVIRONMENT stack=api-layer tf-command=apply workspace=$WORKSPACE
130130
working-directory: ./infrastructure
131131

132-
regression_tests:
133-
needs: deploy
134-
name: Regression Tests
135-
uses: ./.github/workflows/regression-tests.yml
136-
with:
137-
ENVIRONMENT: "test"
138-
VERSION_NUMBER: "main"
139-
secrets: inherit
132+
- name: Regression Tests
133+
uses: ./.github/workflows/regression-tests.yml
134+
with:
135+
ENVIRONMENT: "test"
136+
VERSION_NUMBER: "main"
137+

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

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

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

.github/workflows/cicd-4a-preprod-deploy.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,18 @@ on:
2323
- major
2424

2525
jobs:
26-
call:
27-
uses: ./.github/workflows/base-deploy.yml
28-
with:
29-
environment: preprod
30-
ref: ${{ inputs.ref }}
31-
release_type: ${{ inputs.release_type }}
32-
secrets: inherit
26+
deploy:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: "Deploy"
30+
uses: ./.github/workflows/base-deploy.yml
31+
with:
32+
environment: preprod
33+
ref: ${{ inputs.ref }}
34+
release_type: ${{ inputs.release_type }}
3335

34-
regression_tests:
35-
needs: call
36-
name: Regression Tests
37-
uses: ./.github/workflows/regression-tests.yml
38-
with:
39-
ENVIRONMENT: "pre-prod"
40-
VERSION_NUMBER: "main"
41-
secrets: inherit
36+
- name: Regression Tests
37+
uses: ./.github/workflows/regression-tests.yml
38+
with:
39+
ENVIRONMENT: "preprod"
40+
VERSION_NUMBER: "main"

.github/workflows/regression-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
type: string
1212
PRODUCT:
1313
type: string
14+
secrets: inherit
1415

1516
jobs:
1617
regression-tests:

0 commit comments

Comments
 (0)