Skip to content

Commit

Permalink
ci: Add test execution step for shell-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWatenbergScality committed Feb 26, 2021
1 parent d229ab8 commit 34ed4dc
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions eve/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 34ed4dc

Please sign in to comment.