Skip to content

Commit bfd2267

Browse files
authored
[PRMP-1721] Remove unnecessary testing steps for prod release (#596)
1 parent 6aa4a49 commit bfd2267

File tree

3 files changed

+3
-63
lines changed

3 files changed

+3
-63
lines changed

.github/workflows/full-deploy-to-prod.yml

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
tag_version:
7-
description: "What tagged verison do you want to push to prod?"
7+
description: "What tagged version do you want to push to prod?"
88
required: true
99
type: "string"
1010

@@ -29,38 +29,9 @@ jobs:
2929
echo Build Branch: ${{ inputs.tag_version }}
3030
echo Sandbox: prod
3131
echo Environment: prod
32-
echo Cypress Base Url: ${{ vars.CYPRESS_BASE_URL }}
33-
34-
lambda_test_job:
35-
name: Run Lambda Unit Tests
36-
uses: ./.github/workflows/base-lambdas-reusable-test.yml
37-
with:
38-
python_version: "3.11"
39-
build_branch: ${{ inputs.tag_version }}
40-
41-
react_testing_job:
42-
name: Run UI Unit Tests
43-
uses: ./.github/workflows/base-jest-test.yml
44-
with:
45-
build_branch: ${{ inputs.tag_version }}
46-
47-
cypress_build_job:
48-
name: Build UI version for E2E Tests
49-
uses: ./.github/workflows/base-cypress-build.yml
50-
with:
51-
build_branch: ${{ inputs.tag_version }}
52-
53-
cypress_test_job:
54-
name: Run Cypress E2E Tests
55-
needs: [cypress_build_job]
56-
uses: ./.github/workflows/base-cypress-test-all-env.yml
57-
with:
58-
cypress_base_url: ${{ vars.CYPRESS_BASE_URL }}
59-
build_branch: ${{ inputs.tag_version }}
6032
6133
publish_all_lambda_layers:
6234
name: Publish all Lambda Layers
63-
needs: ["lambda_test_job", "react_testing_job", "cypress_test_job"]
6435
uses: ./.github/workflows/base-lambda-layer-reusable-publish-all.yml
6536
with:
6637
build_branch: ${{ inputs.tag_version }}
@@ -72,7 +43,7 @@ jobs:
7243

7344
deploy_all_lambdas:
7445
name: Deploy all Lambdas
75-
needs: ["lambda_test_job", "react_testing_job", "cypress_test_job", "publish_all_lambda_layers"]
46+
needs: ["publish_all_lambda_layers"]
7647
uses: ./.github/workflows/base-lambdas-reusable-deploy-all.yml
7748
with:
7849
build_branch: ${{ inputs.tag_version }}
@@ -84,7 +55,6 @@ jobs:
8455

8556
deploy_ui:
8657
name: Deploy UI
87-
needs: ["lambda_test_job", "react_testing_job", "cypress_test_job"]
8858
uses: ./.github/workflows/base-deploy-ui.yml
8959
with:
9060
build_branch: ${{ inputs.tag_version }}
@@ -95,7 +65,6 @@ jobs:
9565

9666
deploy_ods_batch_update:
9767
name: Deploy ODS Batch Update
98-
needs: [ "lambda_test_job", "react_testing_job", "cypress_test_job" ]
9968
uses: ./.github/workflows/base-batch-update.yml
10069
with:
10170
build_branch: ${{ inputs.tag_version }}

.github/workflows/lambdas-deploy-to-prod.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,8 @@ env:
2020
BUILD_BRANCH: ${{ inputs.tag_version }}
2121

2222
jobs:
23-
run_tests:
24-
uses: ./.github/workflows/base-lambdas-reusable-test.yml
25-
with:
26-
python_version: "3.11"
27-
build_branch: ${{ inputs.tag_version }}
28-
2923
publish_all_lambda_layers:
3024
name: Publish all Lambda Layers
31-
needs: ["run_tests"]
3225
uses: ./.github/workflows/base-lambda-layer-reusable-publish-all.yml
3326
with:
3427
environment: prod
@@ -40,7 +33,7 @@ jobs:
4033

4134
deploy_all:
4235
uses: ./.github/workflows/base-lambdas-reusable-deploy-all.yml
43-
needs: ["run_tests", "publish_all_lambda_layers"]
36+
needs: ["publish_all_lambda_layers"]
4437
with:
4538
environment: prod
4639
python_version: "3.11"

.github/workflows/ui-deploy-to-prod-manual.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# .github/workflows/terraform-dev
21
name: 'PROD UI - Deploy tagged version to Prod'
32

43
on:
@@ -15,29 +14,8 @@ permissions:
1514
contents: read # This is required for actions/checkout
1615

1716
jobs:
18-
react_testing_job:
19-
name: Run UI Unit Tests
20-
uses: ./.github/workflows/base-jest-test.yml
21-
with:
22-
build_branch: ${{ inputs.tag_version }}
23-
24-
cypress_build_job:
25-
name: Build UI version for E2E Tests
26-
uses: ./.github/workflows/base-cypress-build.yml
27-
with:
28-
build_branch: ${{ inputs.tag_version }}
29-
30-
cypress_test_job:
31-
name: Run Cypress E2E Tests
32-
needs: [cypress_build_job]
33-
uses: ./.github/workflows/base-cypress-test-all-env.yml
34-
with:
35-
cypress_base_url: ${{ vars.CYPRESS_BASE_URL }}
36-
build_branch: ${{ inputs.tag_version }}
37-
3817
deploy_ui:
3918
name: Deploy UI
40-
needs: ["react_testing_job", "cypress_test_job"]
4119
uses: ./.github/workflows/base-deploy-ui.yml
4220
with:
4321
build_branch: ${{ inputs.tag_version }}

0 commit comments

Comments
 (0)