@@ -68,37 +68,37 @@ jobs:
6868 VERSION_NUMBER : ${{ inputs.VERSION_NUMBER }}
6969 GITHUB-TOKEN : ${{ steps.generate-token.outputs.token }}
7070 run : |
71- if [[ "$TARGET_ENVIRONMENT" != "prod" && "$TARGET_ENVIRONMENT" != "ref" ]]; then
72- REGRESSION_TEST_REPO_TAG="v3.4.12 " # This is the tag or branch of the regression test code to run, usually a version tag like v3.1.0 or a branch name
73- REGRESSION_TEST_WORKFLOW_TAG="v3.4.12 " # This is the tag of the github workflow to run, usually the same as REGRESSION_TEST_REPO_TAG
71+ if [[ "$TARGET_ENVIRONMENT" != "prod" && "$TARGET_ENVIRONMENT" != "ref" ]]; then
72+ REGRESSION_TEST_REPO_TAG="v3.4.24 " # This is the tag or branch of the regression test code to run, usually a version tag like v3.1.0 or a branch name
73+ REGRESSION_TEST_WORKFLOW_TAG="v3.4.24 " # This is the tag of the github workflow to run, usually the same as REGRESSION_TEST_REPO_TAG
7474
75- if [[ -z "$REGRESSION_TEST_REPO_TAG" || -z "$REGRESSION_TEST_WORKFLOW_TAG" ]]; then
76- echo "Error: One or both tag variables are not set" >&2
77- exit 1
78- fi
75+ if [[ -z "$REGRESSION_TEST_REPO_TAG" || -z "$REGRESSION_TEST_WORKFLOW_TAG" ]]; then
76+ echo "Error: One or both tag variables are not set" >&2
77+ exit 1
78+ fi
7979
80- # HELPER IF STATEMENT - It will automatically determine the correct Git URL to use based on the REGRESSION_TEST_WORKFLOW_TAG value
81- if [[ "$REGRESSION_TEST_WORKFLOW_TAG" =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
82- echo "REGRESSION_TEST_WORKFLOW_TAG is a version tag, using tag link"
83- curl "https://raw.githubusercontent.com/NHSDigital/electronic-prescription-service-api-regression-tests/refs/tags/${REGRESSION_TEST_WORKFLOW_TAG}/scripts/run_regression_tests.py" -o run_regression_tests.py
84- else
85- echo "REGRESSION_TEST_WORKFLOW_TAG doesn't look like a version tag, using branch link"
86- curl "https://raw.githubusercontent.com/NHSDigital/electronic-prescription-service-api-regression-tests/refs/heads/${REGRESSION_TEST_REPO_TAG}/scripts/run_regression_tests.py" -o run_regression_tests.py
87- fi
80+ # HELPER IF STATEMENT - It will automatically determine the correct Git URL to use based on the REGRESSION_TEST_WORKFLOW_TAG value
81+ if [[ "$REGRESSION_TEST_WORKFLOW_TAG" =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
82+ echo "REGRESSION_TEST_WORKFLOW_TAG is a version tag, using tag link"
83+ curl "https://raw.githubusercontent.com/NHSDigital/electronic-prescription-service-api-regression-tests/refs/tags/${REGRESSION_TEST_WORKFLOW_TAG}/scripts/run_regression_tests.py" -o run_regression_tests.py
84+ else
85+ echo "REGRESSION_TEST_WORKFLOW_TAG doesn't look like a version tag, using branch link"
86+ curl "https://raw.githubusercontent.com/NHSDigital/electronic-prescription-service-api-regression-tests/refs/heads/${REGRESSION_TEST_REPO_TAG}/scripts/run_regression_tests.py" -o run_regression_tests.py
87+ fi
8888
89- if [[ ! -f run_regression_tests.py ]]; then
90- echo "Error: run_regression_tests.py not found" >&2
91- exit 1
92- fi
89+ if [[ ! -f run_regression_tests.py ]]; then
90+ echo "Error: run_regression_tests.py not found" >&2
91+ exit 1
92+ fi
9393
94- poetry install
95- echo Running regression tests in the "$TARGET_ENVIRONMENT" environment
96- poetry run python -u run_regression_tests.py \
97- --env="$TARGET_ENVIRONMENT" \
98- --pr_label="$VERSION_NUMBER" \
99- --token=${{ steps.generate-token.outputs.token }} \
100- --is_called_from_github=true \
101- --product=CPTS-UI \
102- --regression_test_repo_tag "${REGRESSION_TEST_REPO_TAG}" \
103- --regression_test_workflow_tag "${REGRESSION_TEST_WORKFLOW_TAG}"
104- fi
94+ poetry install
95+ echo Running regression tests in the "$TARGET_ENVIRONMENT" environment
96+ poetry run python -u run_regression_tests.py \
97+ --env="$TARGET_ENVIRONMENT" \
98+ --pr_label="$VERSION_NUMBER" \
99+ --token=${{ steps.generate-token.outputs.token }} \
100+ --is_called_from_github=true \
101+ --product=CPTS-UI \
102+ --regression_test_repo_tag "${REGRESSION_TEST_REPO_TAG}" \
103+ --regression_test_workflow_tag "${REGRESSION_TEST_WORKFLOW_TAG}"
104+ fi
0 commit comments