Skip to content

Commit

Permalink
Add PHPStan installers to base setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Aug 12, 2024
1 parent 2e43087 commit b34af79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion magento-phpstan/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [ -z "$COMPOSER_VERSION" ] ; then
fi

MAGENTO_ROOT=/var/www/magento2ce
test -d "${MAGENTO_ROOT}" || (test -d /var/www/magento2ce && MAGENTO_ROOT=/m2)
test -d "${MAGENTO_ROOT}" || (test -d /var/www/magento2ce && MAGENTO_ROOT=/tmp/m2)

test -z "${COMPOSER_NAME}" && (echo "'composer_name' is not set in your GitHub Actions YAML file" && exit 1)

Expand All @@ -20,6 +20,9 @@ ln -s /usr/local/bin/composer$COMPOSER_VERSION /usr/local/bin/composer
echo "Fix issue 115"
cd $MAGENTO_ROOT
rm -rf vendor/
composer config allow-plugins.phpstan/extension-installer true
composer require --dev phpstan/extension-installer --no-update
composer require --dev bitexpert/phpstan-magento --no-update
composer install

echo "Setup extension source folder within Magento root"
Expand Down

0 comments on commit b34af79

Please sign in to comment.