Skip to content

Commit

Permalink
updated workflow to take arguments about which e2e tests to execute (#…
Browse files Browse the repository at this point in the history
…122)

* updated workflow to take arguments about which e2e tests to execute

* updating post_Deploy accordingly
  • Loading branch information
srh-sloan authored Feb 1, 2024
1 parent 5a74cbc commit fdeb820
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/post-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ on:
required: false
default: false
type: boolean
run_e2e_tests_application:
required: false
default: true
type: boolean
run_e2e_tests_assessment:
required: false
default: true
type: boolean
# Leave this in for backwards compatibility, but remove once all repos updated to use above inputs
run_e2e_tests:
required: false
default: false
Expand Down Expand Up @@ -62,7 +71,8 @@ jobs:
e2e_tests_target_url_assessment: https://fsd:fsd@assessment.${{ inputs.environment }}.access-funding.test.levellingup.gov.uk
# run_performance_tests: ${{inputs.run_performance_tests}}
run_performance_tests: false
run_e2e_tests: ${{inputs.run_e2e_tests}}
run_e2e_tests_assessment: ${{inputs.run_e2e_tests_assessment}}
run_e2e_tests_application: ${{inputs.run_e2e_tests_application}}
secrets:
FSD_GH_APP_ID: ${{ secrets.FSD_GH_APP_ID }}
FSD_GH_APP_KEY: ${{ secrets.FSD_GH_APP_KEY }}
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/run-shared-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ on:
required: false
default: false
type: boolean
run_e2e_tests:
run_e2e_tests_application:
required: false
default: true
type: boolean
run_e2e_tests_assessment:
required: false
default: true
type: boolean
Expand All @@ -56,7 +60,7 @@ on:
jobs:
run_application_e2e_test:
runs-on: ubuntu-latest
if: ${{ inputs.run_e2e_tests == true}}
if: ${{ inputs.run_e2e_tests_application == true}}
defaults:
run:
working-directory: ./funding-service-design-e2e-checks
Expand Down Expand Up @@ -101,7 +105,7 @@ jobs:

run_assessment_e2e_test:
runs-on: ubuntu-latest
if: ${{ inputs.run_e2e_tests == true}}
if: ${{ inputs.run_e2e_tests_assessment == true}}
defaults:
run:
working-directory: ./funding-service-design-e2e-checks
Expand Down

0 comments on commit fdeb820

Please sign in to comment.