Parcourir la source

fix: run yarn install if needed

logonoff il y a 4 mois
Parent
commit
cba009ae9e
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      test-frontend.sh

+ 4 - 0
test-frontend.sh

@@ -6,6 +6,10 @@ set -euo pipefail
 OPENSHIFT_CI=${OPENSHIFT_CI:=false}
 ARTIFACT_DIR=${ARTIFACT_DIR:=/tmp/artifacts}
 
+if [ ! -d node_modules ]; then
+  yarn install --immutable
+fi
+
 yarn i18n
 GIT_STATUS="$(git status --short --untracked-files -- locales)"
 if [ -n "$GIT_STATUS" ]; then