feat(check-extension): prefer phpcs conf if it exists

This commit is contained in:
Damien Retzinger
2025-12-15 16:33:09 -05:00
parent 389830f189
commit 810a5705cf
+5 -1
View File
@@ -187,7 +187,11 @@ jobs:
- name: Coding Standard Check - name: Coding Standard Check
shell: bash shell: bash
run: | run: |
./vendor/bin/phpcs --standard=Magento2 --ignore=*vendor/* . if [ -f .phpcs.xml ] || [ -f phpcs.xml ] || [ -f .phpcs.xml.dist ] || [ -f phpcs.xml.dist ]; then
./vendor/bin/phpcs .
else
./vendor/bin/phpcs --standard=Magento2 --ignore=*vendor/* .
fi
working-directory: ${{ inputs.path }} working-directory: ${{ inputs.path }}
integration_test: integration_test: