Skip to content

Add check for allowed_events length in script-pusher #12

Add check for allowed_events length in script-pusher

Add check for allowed_events length in script-pusher #12

Workflow file for this run

name: Magento 2 Static Tests
on: ['push', 'pull_request']
jobs:
static-tests:
name: Magento 2 Static Tests
runs-on: self-hosted
#runs-on: ubuntu-latest
container:
image: yireo/magento2installed:2.4.7-p4
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Add module source
run: |
export COMPOSER_NAME=`cat .module.ini | grep COMPOSER_NAME | cut -f2 -d= | tr -d '"'`
cp -R ${GITHUB_WORKSPACE} /tmp/magento/package-source
cd /tmp/magento
composer config repositories.local-source path package-source/
composer config --no-plugins allow-plugins true
composer require --prefer-source -- ${COMPOSER_NAME}:@dev
composer require --dev --prefer-source -- phpstan/phpstan bitexpert/phpstan-magento phpstan/extension-installer
- name: Run Magento 2 PHPStan Tests
run: |
export COMPOSER_NAME=`cat .module.ini | grep COMPOSER_NAME | cut -f2 -d= | tr -d '"'`
export LEVEL=`echo '<?= json_decode(file_get_contents("MODULE.json"), true)["phpstan_level"];' | php`
php -d memory_limit=4G /tmp/magento/vendor/bin/phpstan analyse --level $LEVEL ${GITHUB_WORKSPACE}