1- name : ' Z-CRON: Daily health check'
1+ name : " Z-CRON: Daily health check - Spinup "
22
33on :
44 schedule :
55 - cron : 30 4 * * 1-5
66
77permissions :
8- actions : read # Required for anchore/sbom-action
8+ actions : read # Required for anchore/sbom-action
99 contents : write # Required for anchore/sbom-action
1010 pull-requests : write
1111 id-token : write
@@ -19,13 +19,13 @@ jobs:
1919 steps :
2020 - name : Set Output
2121 id : set-output
22- run : echo 'workspace=ndrd' >> $GITHUB_OUTPUT
22+ run : echo 'workspace=ndrd' >> $GITHUB_OUTPUT
2323
2424 terraform_plan_apply :
2525 name : Terraform Plan/Apply (ndrd)
2626 runs-on : ubuntu-latest
2727 environment : development
28- needs : [' set_workspace' ]
28+ needs : [" set_workspace" ]
2929 steps :
3030 - name : Checkout
3131 uses : actions/checkout@v5
7979 with :
8080 python_version : " 3.11"
8181 build_branch : main
82-
82+
8383 run_ui_unit_tests :
8484 name : Run UI Unit Tests
8585 uses : NHSDigital/national-document-repository/.github/workflows/base-vitest-test.yml@main
8888
8989 run_cypress_tests :
9090 name : Run Cypress Tests
91- runs-on : ubuntu-latest
91+ runs-on : ubuntu-latest
9292 steps :
9393 - name : Checkout
9494 uses : actions/checkout@v5
@@ -107,9 +107,9 @@ jobs:
107107 IDENTITY_PROVIDER_POOL_ID : not provided yet
108108 MONITOR_ACCOUNT_ID : not provided yet
109109 BUILD_ENV : development
110- IMAGE_VERSION : ' not-required'
110+ IMAGE_VERSION : " not-required"
111111 run : |
112- ./react-environment-config.sh
112+ ./react-environment-config.sh
113113 working-directory : ./app
114114
115115 - name : Cypress Build
@@ -119,7 +119,7 @@ jobs:
119119 runTests : false
120120 build : npm run build
121121 working-directory : ./app
122-
122+
123123 - name : npm install serve -g
124124 run : npm install serve -g
125125
@@ -132,8 +132,8 @@ jobs:
132132 working-directory : ./app
133133 env :
134134 CYPRESS_BASE_URL : http://localhost:3000
135- CYPRESS_grepTags : ' regression'
136-
135+ CYPRESS_grepTags : " regression"
136+
137137 - name : Upload Artifacts (Screenshots)
138138 uses : actions/upload-artifact@v4
139139 if : failure()
@@ -152,7 +152,7 @@ jobs:
152152
153153 publish_lambda_layers :
154154 name : Publish Lambda Layers
155- needs : [' set_workspace', ' terraform_plan_apply' ]
155+ needs : [" set_workspace", " terraform_plan_apply" ]
156156 uses : NHSDigital/national-document-repository/.github/workflows/base-lambda-layer-reusable-publish-all.yml@main
157157 with :
158158 build_branch : main
@@ -161,11 +161,11 @@ jobs:
161161 python_version : " 3.11"
162162 secrets :
163163 AWS_ASSUME_ROLE : ${{ secrets.AWS_ASSUME_ROLE }}
164-
164+
165165 deploy_lambdas :
166166 name : Deploy Lambdas
167167 uses : NHSDigital/national-document-repository/.github/workflows/base-lambdas-reusable-deploy-all.yml@main
168- needs : [' set_workspace', ' publish_lambda_layers' ]
168+ needs : [" set_workspace", " publish_lambda_layers" ]
169169 with :
170170 build_branch : main
171171 sandbox : ${{ needs.set_workspace.outputs.workspace }}
@@ -178,7 +178,7 @@ jobs:
178178 deploy_ui :
179179 name : Deploy UI
180180 uses : NHSDigital/national-document-repository/.github/workflows/base-deploy-ui.yml@main
181- needs : [' terraform_plan_apply', ' set_workspace' ]
181+ needs : [" terraform_plan_apply", " set_workspace" ]
182182 with :
183183 build_branch : main
184184 sandbox : ${{ needs.set_workspace.outputs.workspace }}
@@ -188,8 +188,8 @@ jobs:
188188
189189 destroy_test_environment :
190190 if : always()
191- name : Destroy Sandbox (ndrd)
192- needs : [' set_workspace', ' deploy_ui', ' deploy_lambdas' ]
191+ name : Destroy Sandbox (ndrd)
192+ needs : [" set_workspace", " deploy_ui", " deploy_lambdas" ]
193193 uses : ./.github/workflows/tear-down-sandbox.yml
194194 with :
195195 git_ref : main
@@ -201,7 +201,16 @@ jobs:
201201 name : Notify Slack on Failure
202202 runs-on : ubuntu-latest
203203 environment : development
204- needs : [terraform_plan_apply, run_lambda_unit_tests, run_ui_unit_tests, run_cypress_tests, publish_lambda_layers, deploy_lambdas, deploy_ui]
204+ needs :
205+ [
206+ terraform_plan_apply,
207+ run_lambda_unit_tests,
208+ run_ui_unit_tests,
209+ run_cypress_tests,
210+ publish_lambda_layers,
211+ deploy_lambdas,
212+ deploy_ui,
213+ ]
205214 if : failure()
206215 steps :
207216 - name : Configure AWS Credentials
@@ -268,4 +277,4 @@ jobs:
268277 ]
269278 }
270279 ]
271- }
280+ }
0 commit comments