From 5627a064048d4fb71b23dc91a2d1ff0249e5a4d0 Mon Sep 17 00:00:00 2001 From: Ines WALLON <ines@famillewallon.com> Date: Wed, 9 Apr 2025 03:10:36 +0200 Subject: [PATCH] Issue #3516500 by jonhattan, liber_t: .toolbox/ does not exist in phpmd and phpstan --- templates/code_quality/phpstan/template.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/code_quality/phpstan/template.yml b/templates/code_quality/phpstan/template.yml index 8e6041b..34ce7a9 100644 --- a/templates/code_quality/phpstan/template.yml +++ b/templates/code_quality/phpstan/template.yml @@ -7,11 +7,13 @@ variables: - .cache - .code_quality_default before_script: - - mkdir -p .toolbox/ + - mkdir -p .toolbox/ + - ${COMPOSER_BIN} init --working-dir=.toolbox/ --name=drupal/gitlab-toolbox -n + - ${COMPOSER_BIN} config --working-dir=.toolbox/ --no-plugins allow-plugins.phpstan/extension-installer true - ${COMPOSER_BIN} require --working-dir=.toolbox/ --no-interaction --ignore-platform-reqs --no-progress mglaman/phpstan-drupal - test -f phpstan.neon.dist || curl -OL --create-dirs --output-dir .toolbox/ ${TOOLBOX_REF_URL}/templates/code_quality/phpstan/phpstan.neon.dist script: - - .toolbox/vendor/bin/phpstan + - ${BIN_DIR}/phpstan analyse --configuration=.toolbox/phpstan.neon.dist --memory-limit 2G -- GitLab