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 27c72dc commit a1f6db7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/smoke-test-imperative.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
- name: 'Run JHipster Application server tests'
run: $JHI_SCRIPTS/03-run-server-tests.sh $JHI_APP
- name: 'Run npm clean install'
run: npm ci
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 ci
fi

0 comments on commit a1f6db7

Please sign in to comment.