diff --git a/.github/workflows/smoke-test-imperative.yml b/.github/workflows/smoke-test-imperative.yml index a133a4c6..33b11493 100644 --- a/.github/workflows/smoke-test-imperative.yml +++ b/.github/workflows/smoke-test-imperative.yml @@ -42,5 +42,7 @@ jobs: run: $JHI_SCRIPTS/02-generate-project.sh $JHI_APP - name: 'Run JHipster Application server tests' run: $JHI_SCRIPTS/03-run-server-tests.sh $JHI_APP + - name: 'Run npm clean install' + run: $JHI_SCRIPTS/04-run-npm-install.sh $JHI_APP - name: 'Run JHipster Application client tests' - run: $JHI_SCRIPTS/04-run-client-tests.sh $JHI_APP + run: $JHI_SCRIPTS/05-run-client-tests.sh $JHI_APP diff --git a/test-integration/scripts/04-run-npm-install.sh b/test-integration/scripts/04-run-npm-install.sh new file mode 100755 index 00000000..c20bc495 --- /dev/null +++ b/test-integration/scripts/04-run-npm-install.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e +source $(dirname $0)/00-init-env.sh + +#------------------------------------------------------------------------------- +# Launch frontend tests +#------------------------------------------------------------------------------- +cd "$JHI_FOLDER_APP" + JHI_CLIENT_PACKAGE_MANAGER=npm + +if [ -f "tsconfig.json" ]; then + $JHI_CLIENT_PACKAGE_MANAGER install +fi diff --git a/test-integration/scripts/04-run-client-tests.sh b/test-integration/scripts/05-run-client-tests.sh similarity index 100% rename from test-integration/scripts/04-run-client-tests.sh rename to test-integration/scripts/05-run-client-tests.sh