@@ -1254,6 +1254,7 @@ stages:
1254
1254
name : Trigger all unit tests simultaneously
1255
1255
stage_names :
1256
1256
- unit_tests_ui
1257
+ - unit_tests_shell_ui
1257
1258
- unit_tests_crd_client_generator
1258
1259
- unit_tests_storage_operator
1259
1260
- unit_tests_salt
@@ -1314,6 +1315,49 @@ stages:
1314
1315
STEP_NAME : unit_tests_ui
1315
1316
- Upload : *upload_final_status_artifact
1316
1317
1318
+ unit_tests_shell_ui :
1319
+ _metalk8s_internal_info :
1320
+ junit_info : &_unit-test_shell_ui_junit_info
1321
+ TEST_SUITE : unit test
1322
+ TEST_NAME : shell-ui
1323
+ worker :
1324
+ type : kube_pod
1325
+ path : eve/workers/pod-unit-tests/pod.yaml
1326
+ images :
1327
+ docker-unit-tests :
1328
+ context : ' shell-ui'
1329
+ dockerfile : eve/workers/pod-unit-tests/ui/Dockerfile
1330
+ vars :
1331
+ name : " metalk8s-unit-tests-shell-ui-worker"
1332
+ steps :
1333
+ - Git : *git_pull
1334
+ - ShellCommand :
1335
+ << : *add_final_status_artifact_failed
1336
+ env :
1337
+ << : *_env_final_status_artifact_failed
1338
+ << : *_unit-test_shell_ui_junit_info
1339
+ STEP_NAME : unit_tests_shell_ui
1340
+ - ShellCommand : *yum_clean_all
1341
+ - ShellCommand :
1342
+ name : Install UI dependencies
1343
+ workdir : build/shell-ui
1344
+ command : >
1345
+ npm ci --prefer-offline --no-audit
1346
+ haltOnFailure : true
1347
+ - ShellCommand :
1348
+ name : Run all Shell UI unit tests
1349
+ workdir : build/shell-ui
1350
+ command : >
1351
+ npm run test --no-update-notifier
1352
+ haltOnFailure : true
1353
+ - ShellCommand :
1354
+ << : *add_final_status_artifact_success
1355
+ env :
1356
+ << : *_env_final_status_artifact_success
1357
+ << : *_unit-test_shell_ui_junit_info
1358
+ STEP_NAME : unit_tests_sehll_ui
1359
+ - Upload : *upload_final_status_artifact
1360
+
1317
1361
unit_tests_crd_client_generator :
1318
1362
_metalk8s_internal_info :
1319
1363
junit_info : &_unit-test_crd_client_generator_junit_info
0 commit comments