fix(check-extension): probe vendor dir for MageOS/Magento standards when running phpcs (#216)

Closes #213
This commit is contained in:
David Lambauer
2026-04-24 00:41:45 +02:00
committed by GitHub
parent 2ef157ef8a
commit 7799f0f9bf
+12 -1
View File
@@ -182,7 +182,18 @@ jobs:
- name: Register Coding Standard - name: Register Coding Standard
shell: bash shell: bash
working-directory: ${{ inputs.path }} working-directory: ${{ inputs.path }}
run: vendor/bin/phpcs --config-set installed_paths vendor/magento/magento-coding-standard,vendor/magento/php-compatibility-fork run: |
if [ -d vendor/magento/magento-coding-standard ]; then
CODING_STANDARD_VENDOR=magento
elif [ -d vendor/mage-os/magento-coding-standard ]; then
CODING_STANDARD_VENDOR=mage-os
else
echo "No magento-coding-standard directory found under vendor/magento or vendor/mage-os."
echo "Trusting dealerdirect/phpcodesniffer-composer-installer to have registered installed_paths."
exit 0
fi
vendor/bin/phpcs --config-set installed_paths \
"vendor/${CODING_STANDARD_VENDOR}/magento-coding-standard,vendor/${CODING_STANDARD_VENDOR}/php-compatibility-fork"
- name: Coding Standard Check - name: Coding Standard Check
shell: bash shell: bash