Skip to content

Commit 7484b2f

Browse files
committed
Revert "ELI-452: Moves non workflows to helpers"
This reverts commit abb71d2.
1 parent abb71d2 commit 7484b2f

12 files changed

+14
-13
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ jobs:
168168
name: "Regression Tests"
169169
if: ${{ needs.metadata.outputs.environment == 'preprod' }}
170170
needs: deploy
171-
uses: ./.github/workflows/helpers/regression-tests.yml
171+
uses: ./.github/workflows/regression-tests.yml
172172
with:
173173
ENVIRONMENT: "preprod"
174174
VERSION_NUMBER: "main"

.github/workflows/cicd-1-pull-request.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
echo "python_version=$(grep "^nodejs" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
3939
echo "terraform_version=$(grep "^terraform" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
4040
echo "version=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT
41+
# echo "version=$(head -n 1 .version 2> /dev/null || echo unknown)" >> $GITHUB_OUTPUT
4142
- name: "Check if pull request exists for this branch"
4243
id: pr_exists
4344
env:
@@ -64,11 +65,11 @@ jobs:
6465
export VERSION="${{ steps.variables.outputs.version }}"
6566
export DOES_PULL_REQUEST_EXIST="${{ steps.pr_exists.outputs.does_pull_request_exist }}"
6667
make list-variables
67-
commit-stage:
68+
commit-stage: # Recommended maximum execution time is 2 minutes
6869
name: "Commit stage"
6970
if: github.event.pull_request.draft == false
7071
needs: [metadata]
71-
uses: ./.github/workflows/helpers/stage-1-commit.yaml
72+
uses: ./.github/workflows/stage-1-commit.yaml
7273
with:
7374
build_datetime: "${{ needs.metadata.outputs.build_datetime }}"
7475
build_timestamp: "${{ needs.metadata.outputs.build_timestamp }}"
@@ -78,11 +79,11 @@ jobs:
7879
terraform_version: "${{ needs.metadata.outputs.terraform_version }}"
7980
version: "${{ needs.metadata.outputs.version }}"
8081
secrets: inherit
81-
test-stage:
82+
test-stage: # Recommended maximum execution time is 5 minutes
8283
name: "Test stage"
8384
if: github.event.pull_request.draft == false
8485
needs: [metadata, commit-stage]
85-
uses: ./.github/workflows/helpers/stage-2-test.yaml
86+
uses: ./.github/workflows/stage-2-test.yaml
8687
with:
8788
build_datetime: "${{ needs.metadata.outputs.build_datetime }}"
8889
build_timestamp: "${{ needs.metadata.outputs.build_timestamp }}"
@@ -92,10 +93,10 @@ jobs:
9293
terraform_version: "${{ needs.metadata.outputs.terraform_version }}"
9394
version: "${{ needs.metadata.outputs.version }}"
9495
secrets: inherit
95-
build-stage:
96+
build-stage: # Recommended maximum execution time is 3 minutes
9697
name: "Build stage"
9798
needs: [metadata, test-stage]
98-
uses: ./.github/workflows/helpers/stage-3-build.yaml
99+
uses: ./.github/workflows/stage-3-build.yaml
99100
if: needs.metadata.outputs.does_pull_request_exist == 'true' || (github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened'))
100101
with:
101102
build_datetime: "${{ needs.metadata.outputs.build_datetime }}"
@@ -106,10 +107,10 @@ jobs:
106107
terraform_version: "${{ needs.metadata.outputs.terraform_version }}"
107108
version: "${{ needs.metadata.outputs.version }}"
108109
secrets: inherit
109-
acceptance-stage:
110+
acceptance-stage: # Recommended maximum execution time is 10 minutes
110111
name: "Acceptance stage"
111112
needs: [metadata, build-stage]
112-
uses: ./.github/workflows/helpers/stage-4-acceptance.yaml
113+
uses: ./.github/workflows/stage-4-acceptance.yaml
113114
if: needs.metadata.outputs.does_pull_request_exist == 'true' || (github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened'))
114115
with:
115116
build_datetime: "${{ needs.metadata.outputs.build_datetime }}"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
regression-tests:
134134
name: "Regression Tests"
135135
needs: publish
136-
uses: ./.github/workflows/helpers/regression-tests.yml
136+
uses: ./.github/workflows/regression-tests.yml
137137
with:
138138
ENVIRONMENT: "dev"
139139
VERSION_NUMBER: "main"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
regression-tests:
109109
name: "Regression Tests"
110110
needs: deploy
111-
uses: ./.github/workflows/helpers/regression-tests.yml
111+
uses: ./.github/workflows/regression-tests.yml
112112
with:
113113
ENVIRONMENT: "test"
114114
VERSION_NUMBER: "main"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424

2525
jobs:
2626
call:
27-
uses: ./.github/workflows/helpers/base-deploy.yml
27+
uses: ./.github/workflows/base-deploy.yml
2828
with:
2929
environment: preprod
3030
ref: ${{ inputs.ref }}

.github/workflows/cicd-5-prod-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
call:
16-
uses: ./.github/workflows/helpers/base-deploy.yml
16+
uses: ./.github/workflows/base-deploy.yml
1717
with:
1818
environment: prod
1919
ref: ${{ inputs.ref }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)