Skip to content

Commit 810a570

Browse files
committed
feat(check-extension): prefer phpcs conf if it exists
1 parent 389830f commit 810a570

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/check-extension.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,11 @@ jobs:
187187
- name: Coding Standard Check
188188
shell: bash
189189
run: |
190-
./vendor/bin/phpcs --standard=Magento2 --ignore=*vendor/* .
190+
if [ -f .phpcs.xml ] || [ -f phpcs.xml ] || [ -f .phpcs.xml.dist ] || [ -f phpcs.xml.dist ]; then
191+
./vendor/bin/phpcs .
192+
else
193+
./vendor/bin/phpcs --standard=Magento2 --ignore=*vendor/* .
194+
fi
191195
working-directory: ${{ inputs.path }}
192196

193197
integration_test:

0 commit comments

Comments
 (0)