Skip to content

Commit 99d0663

Browse files
Feature/ELI-262 regression tests ci integration (#351)
* stashing * trigger for the regression tests now in place * commit workflow to test integration * using a different workflow to test the integration * using a different workflow to test the integration * returned missing steps that are required * asdf version bump * comment out the docker line that asdf does not support * added python to .tool-versions * added python to .tool-versions * added test tag value of main * added the parameters to the run_regression_tests.py call * removed Azure authentication method from run_regression_tests.py * removed Azure authentication method from run_regression_tests.py * force lowercase env name * use PAT token for now * use PAT token for now * Try to use standard GITHUB_TOKEN again * Go back to PAT * script works once the token issue is resolved * try access token directly instead of exporting to variable * rename env variable to TESTS_TOKEN * print out TESTS_TOKEN * use default github token * try PAT again * testing if i can retrieve a different secret * using with: instead of env: * using with: instead of env: * call secret in workflow_call: * inherit secrets * attempt at caching of poetry packages * remove inputs from workflow temporarily to avoid confusion * remove requirement for review to deploy * rename * rename * revert everything back to normal behaviour * comment out deployment of test to test the workflow still works with venv caching * fixed pr_label NoneType error * use the Python version from .tool-versions * use the Python version from .tool-versions. rename to take out the redundant word "run" * take out == * fix the python version grab * restored deploy to test workflow to its former glory * remove stated permissions (not sure if they're needed) * remove stated permissions (not sure if they're needed) * moved the regression tests from a separate job to a step of the deploy job * Maybe we don't need to inherit secrets if it's not a separate job? * move regression tests from being a separate job to being a step in the deploy process * returned secrets: {} to base-deploy.yml
1 parent 5742f72 commit 99d0663

File tree

6 files changed

+25
-34
lines changed

6 files changed

+25
-34
lines changed

.github/workflows/base-deploy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,3 +266,10 @@ jobs:
266266
Auto-release created during production deployment.
267267
draft: false
268268
prerelease: false
269+
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"

.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: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,8 @@ jobs:
131131
make terraform env=$ENVIRONMENT stack=api-layer tf-command=apply workspace=$WORKSPACE
132132
working-directory: ./infrastructure
133133

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

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,8 @@ 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"

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,3 @@ jobs:
3131
release_type: ${{ inputs.release_type }}
3232
secrets: inherit
3333

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

.github/workflows/regression-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ on:
1111
type: string
1212
PRODUCT:
1313
type: string
14+
secrets: {}
15+
1416

1517
jobs:
1618
regression-tests:
17-
runs-on: ubuntu-22.04
19+
runs-on: ubuntu-latest
1820
environment: ${{ inputs.ENVIRONMENT }}
1921

2022
steps:

0 commit comments

Comments
 (0)