@@ -203,6 +203,51 @@ jobs:
203
203
source awsenvconf
204
204
source buildenvvar
205
205
./master_deploy.sh -d ECS -e PROD -t latest -s prod_communityapp_taskvar -i communityapp
206
+
207
+ " smoke-test-on-staging " :
208
+ << : *defaults
209
+ steps :
210
+ # Initialization.
211
+ - checkout
212
+ - setup_remote_docker
213
+ - run : *install_dependency
214
+ - run : *install_deploysuite
215
+ # Restoration of node_modules from cache.
216
+ - restore_cache : *restore_cache_settings_for_build
217
+ - run :
218
+ name : " configuring environment"
219
+ command : |
220
+ ./awsconfiguration.sh PROD
221
+ ./buildenv.sh -e PROD -b staging_communityapp_buildvar,staging_communityapp_deployvar
222
+ - run :
223
+ name : " Run automation"
224
+ command : |
225
+ source awsenvconf
226
+ source buildenvvar
227
+ ./automated-smoke-test/smoketest.sh automation-config-staging.json prod
228
+
229
+ " smoke-test-on-production " :
230
+ << : *defaults
231
+ steps :
232
+ # Initialization.
233
+ - checkout
234
+ - setup_remote_docker
235
+ - run : *install_dependency
236
+ - run : *install_deploysuite
237
+ # Restoration of node_modules from cache.
238
+ - restore_cache : *restore_cache_settings_for_build
239
+ - run :
240
+ name : " configuring environment"
241
+ command : |
242
+ ./awsconfiguration.sh PROD
243
+ ./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar
244
+ - run :
245
+ name : " Run automation"
246
+ command : |
247
+ source awsenvconf
248
+ source buildenvvar
249
+ ./automated-smoke-test/smoketest.sh automation-config-prod.json prod
250
+
206
251
# Test job for the cases when we do not need deployment. It just rapidly
207
252
# installs (updates) app dependencies, and runs tests (ESLint, Stylelint,
208
253
# Jest unit-tests).
@@ -231,19 +276,6 @@ workflows:
231
276
branches :
232
277
only :
233
278
- develop
234
- - develop_automation
235
- - ci-manual-approval
236
- post-steps :
237
- - run :
238
- name : Run automation
239
- command : |
240
- source awsenvconf
241
- source buildenvvar
242
- ./automated-smoke-test/smoketest.sh automation-config-dev.json dev
243
- - " smoke-testing " :
244
- type : approval
245
- requires :
246
- - build-dev
247
279
# This is alternate dev env for parallel testing
248
280
- " build-test " :
249
281
context : org-global
@@ -267,14 +299,19 @@ workflows:
267
299
- free
268
300
# This is stage env for production QA releases
269
301
- " build-prod-staging " :
270
- context : org-global
271
- requires :
272
- - smoke-testing
302
+ context : org-global
273
303
filters :
274
304
branches :
275
305
only :
276
306
- develop
277
- - ci-manual-approval
307
+ - " approve-smoke-test-on-staging " :
308
+ type : approval
309
+ requires :
310
+ - build-prod-staging
311
+ - " smoke-test-on-staging " :
312
+ context : org-global
313
+ requires :
314
+ - approve-smoke-test-on-staging
278
315
# Production builds are exectuted
279
316
# when PR is merged to the master
280
317
# Don't change anything in this configuration
@@ -287,6 +324,14 @@ workflows:
287
324
branches :
288
325
only :
289
326
- master
327
+ - " approve-smoke-test-on-production " :
328
+ type : approval
329
+ requires :
330
+ - build-prod
331
+ - " smoke-test-on-production " :
332
+ context : org-global
333
+ requires :
334
+ - approve-smoke-test-on-production
290
335
# Simple testing is executed for any branch other than "develop" and
291
336
# "master".
292
337
- test :
0 commit comments