Skip to content

Commit

Permalink
Add npm install step through a script
Browse files Browse the repository at this point in the history
  • Loading branch information
avdev4j committed Dec 22, 2020
1 parent fee2d6f commit df83ee4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/smoke-test-imperative.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions test-integration/scripts/04-run-npm-install.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit df83ee4

Please sign in to comment.