Skip to content

Commit 43581e4

Browse files
ci: Add test execution step for shell-ui
1 parent 19ce0a3 commit 43581e4

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

eve/main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,7 @@ stages:
12541254
name: Trigger all unit tests simultaneously
12551255
stage_names:
12561256
- unit_tests_ui
1257+
- unit_tests_shell_ui
12571258
- unit_tests_crd_client_generator
12581259
- unit_tests_storage_operator
12591260
- unit_tests_salt
@@ -1314,6 +1315,49 @@ stages:
13141315
STEP_NAME: unit_tests_ui
13151316
- Upload: *upload_final_status_artifact
13161317

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+
13171361
unit_tests_crd_client_generator:
13181362
_metalk8s_internal_info:
13191363
junit_info: &_unit-test_crd_client_generator_junit_info

0 commit comments

Comments
 (0)