@@ -225,6 +225,29 @@ jobs:
225
225
source awsenvconf
226
226
source buildenvvar
227
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
+
228
251
# Test job for the cases when we do not need deployment. It just rapidly
229
252
# installs (updates) app dependencies, and runs tests (ESLint, Stylelint,
230
253
# Jest unit-tests).
@@ -255,13 +278,6 @@ workflows:
255
278
- develop
256
279
- develop_automation
257
280
- ci-manual-approval
258
- post-steps :
259
- - run :
260
- name : Run automation
261
- command : |
262
- source awsenvconf
263
- source buildenvvar
264
- ./automated-smoke-test/smoketest.sh automation-config-dev.json dev
265
281
- " smoke-testing " :
266
282
type : approval
267
283
requires :
@@ -295,14 +311,14 @@ workflows:
295
311
only :
296
312
- develop
297
313
- develop-approval-patch-1
298
- - " hold -smoke-test-on-staging" :
314
+ - " approve -smoke-test-on-staging" :
299
315
type : approval
300
316
requires :
301
317
- build-prod-staging
302
318
- " smoke-test-on-staging " :
303
319
context : org-global
304
320
requires :
305
- - hold -smoke-test-on-staging
321
+ - approve -smoke-test-on-staging
306
322
# Production builds are exectuted
307
323
# when PR is merged to the master
308
324
# Don't change anything in this configuration
@@ -315,6 +331,14 @@ workflows:
315
331
branches :
316
332
only :
317
333
- master
334
+ - " approve-smoke-test-on-production " :
335
+ type : approval
336
+ requires :
337
+ - build-prod
338
+ - " smoke-test-on-production " :
339
+ context : org-global
340
+ requires :
341
+ - approve-smoke-test-on-production
318
342
# Simple testing is executed for any branch other than "develop" and
319
343
# "master".
320
344
- test :
0 commit comments