Use phpcs directly so we can pass in correct format

This commit is contained in:
Kelly Dwan 2020-12-10 11:27:47 -05:00
parent 4e5402c9e0
commit af707b1425
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -47,7 +47,7 @@ jobs:
run: |
touch $GITHUB_WORKSPACE/tmp.php
export CHANGED_FILES=$(git diff --name-only --diff-filter=AM remotes/origin/${{ github.base_ref }} | tr '\n' ' ')
composer run-script phpcs $GITHUB_WORKSPACE/tmp.php $(echo $CHANGED_FILES) -- -n | cs2pr
phpcs -q -n --report=checkstyle $GITHUB_WORKSPACE/tmp.php $(echo $CHANGED_FILES) -- -n | cs2pr
phpunit:
name: PHP Unit Tests