diff --git a/eve/main.yml b/eve/main.yml index 02f4d42c2c..a3308aeaf5 100644 --- a/eve/main.yml +++ b/eve/main.yml @@ -1254,6 +1254,7 @@ stages: name: Trigger all unit tests simultaneously stage_names: - unit_tests_ui + - unit_tests_shell_ui - unit_tests_crd_client_generator - unit_tests_storage_operator - unit_tests_salt @@ -1314,6 +1315,49 @@ stages: STEP_NAME: unit_tests_ui - Upload: *upload_final_status_artifact + unit_tests_shell_ui: + _metalk8s_internal_info: + junit_info: &_unit-test_shell_ui_junit_info + TEST_SUITE: unit test + TEST_NAME: shell-ui + worker: + type: kube_pod + path: eve/workers/pod-unit-tests/pod.yaml + images: + docker-unit-tests: + context: 'shell-ui' + dockerfile: eve/workers/pod-unit-tests/ui/Dockerfile + vars: + name: "metalk8s-unit-tests-shell-ui-worker" + steps: + - Git: *git_pull + - ShellCommand: + <<: *add_final_status_artifact_failed + env: + <<: *_env_final_status_artifact_failed + <<: *_unit-test_shell_ui_junit_info + STEP_NAME: unit_tests_shell_ui + - ShellCommand: *yum_clean_all + - ShellCommand: + name: Install UI dependencies + workdir: build/shell-ui + command: > + npm ci --prefer-offline --no-audit + haltOnFailure: true + - ShellCommand: + name: Run all Shell UI unit tests + workdir: build/shell-ui + command: > + npm run test --no-update-notifier + haltOnFailure: true + - ShellCommand: + <<: *add_final_status_artifact_success + env: + <<: *_env_final_status_artifact_success + <<: *_unit-test_shell_ui_junit_info + STEP_NAME: unit_tests_sehll_ui + - Upload: *upload_final_status_artifact + unit_tests_crd_client_generator: _metalk8s_internal_info: junit_info: &_unit-test_crd_client_generator_junit_info