From 8fdc8e778f19744f3be5efd6b2846f0d7557f7d7 Mon Sep 17 00:00:00 2001 From: Sven Reichel Date: Fri, 13 Dec 2024 08:59:47 +0100 Subject: [PATCH] merged workflows --- .github/workflows/phpcs.yml | 12 +--- .phpcs.dist.php.xml | 76 -------------------------- .phpcs.dist.ecg.xml => .phpcs.dist.xml | 64 +++++++++++++++++++++- .phpcs.xml | 5 -- 4 files changed, 65 insertions(+), 92 deletions(-) delete mode 100644 .phpcs.dist.php.xml rename .phpcs.dist.ecg.xml => .phpcs.dist.xml (63%) delete mode 100644 .phpcs.xml diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index 580bc27aad5..669c4276c7c 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -7,17 +7,9 @@ on: jobs: phpcs: - name: ${{ matrix.rules.label }} + name: Validation runs-on: [ubuntu-latest] - strategy: - matrix: - rules: - - label: Ecg - path: .phpcs.dist.ecg.xml - - label: PhpCompatibility - path: .phpcs.dist.php.xml - steps: - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -42,4 +34,4 @@ jobs: run: composer install --prefer-dist --no-progress --ignore-platform-req=ext-* - name: PHPCodeSniffer - run: php vendor/bin/phpcs -s -p --report=full --standard=${{ matrix.rules.path }} + run: php vendor/bin/phpcs -s -p --report=full --standard=.phpcs.dist.xml diff --git a/.phpcs.dist.php.xml b/.phpcs.dist.php.xml deleted file mode 100644 index 13a31978800..00000000000 --- a/.phpcs.dist.php.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - api.php - cron.php - get.php - index.php - install.php - app/Mage.php - app/code/core/Mage/ - errors/ - lib/Mage/ - lib/Magento/ - lib/Varien/ - shell/ - tests/unit/ - - - */Varien/Object.php* - */Varien/Data/Form/Abstract.php* - */Varien/Db/Tree.php* - */Varien/Directory/Collection.php* - - - */Magento/Crypt.php* - */Varien/Crypt/Mcrypt.php* - - - */Varien/Crypt/Mcrypt.php* - - - */Magento/Crypt.php* - */Varien/Crypt/Mcrypt.php* - - - */Varien/Crypt/Mcrypt.php* - - - */Varien/Crypt/Mcrypt.php* - - - */Magento/Crypt.php* - */Varien/Crypt/Mcrypt.php* - - - */Magento/Crypt.php* - */Varien/Crypt/Mcrypt.php* - - - */Magento/Crypt.php* - */Varien/Crypt/Mcrypt.php* - - - */Magento/Crypt.php* - */Varien/Crypt/Mcrypt.php* - - - */Magento/Crypt.php* - */Varien/Crypt/Mcrypt.php* - - - */Magento/Crypt.php* - */Varien/Crypt/Mcrypt.php* - - - */Magento/Crypt.php* - */Varien/Crypt/Mcrypt.php* - - - */Magento/Crypt.php* - */Varien/Crypt/Mcrypt.php* - - - */Magento/Crypt.php* - */Varien/Crypt/Mcrypt.php* - - diff --git a/.phpcs.dist.ecg.xml b/.phpcs.dist.xml similarity index 63% rename from .phpcs.dist.ecg.xml rename to .phpcs.dist.xml index 36665bd7db4..615f2fd5c55 100644 --- a/.phpcs.dist.ecg.xml +++ b/.phpcs.dist.xml @@ -1,5 +1,5 @@ - + api.php cron.php get.php @@ -12,6 +12,7 @@ lib/Magento/ lib/Varien/ shell/ + tests/unit/ */core/Mage/*/data/* */core/Mage/*/sql/* @@ -143,4 +144,65 @@ + + + + */Varien/Object.php* + */Varien/Data/Form/Abstract.php* + */Varien/Db/Tree.php* + */Varien/Directory/Collection.php* + + + */Magento/Crypt.php* + */Varien/Crypt/Mcrypt.php* + + + */Varien/Crypt/Mcrypt.php* + + + */Magento/Crypt.php* + */Varien/Crypt/Mcrypt.php* + + + */Varien/Crypt/Mcrypt.php* + + + */Varien/Crypt/Mcrypt.php* + + + */Magento/Crypt.php* + */Varien/Crypt/Mcrypt.php* + + + */Magento/Crypt.php* + */Varien/Crypt/Mcrypt.php* + + + */Magento/Crypt.php* + */Varien/Crypt/Mcrypt.php* + + + */Magento/Crypt.php* + */Varien/Crypt/Mcrypt.php* + + + */Magento/Crypt.php* + */Varien/Crypt/Mcrypt.php* + + + */Magento/Crypt.php* + */Varien/Crypt/Mcrypt.php* + + + */Magento/Crypt.php* + */Varien/Crypt/Mcrypt.php* + + + */Magento/Crypt.php* + */Varien/Crypt/Mcrypt.php* + + + */Magento/Crypt.php* + */Varien/Crypt/Mcrypt.php* + diff --git a/.phpcs.xml b/.phpcs.xml deleted file mode 100644 index c3e7a9cb330..00000000000 --- a/.phpcs.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - -