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

View file

@ -41,13 +41,13 @@ jobs:
- name: Install Composer dependencies - name: Install Composer dependencies
run: | run: |
composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction
echo "${PWD}/vendor/bin" >> $GITHUB_PATH echo "${PWD}/mu-plugins/vendor/bin" >> $GITHUB_PATH
- name: Run PHPCS on all Core files - name: Run PHPCS on all Core files
run: | run: |
touch $GITHUB_WORKSPACE/tmp.php touch $GITHUB_WORKSPACE/tmp.php
export CHANGED_FILES=$(git diff --name-only --diff-filter=AM remotes/origin/${{ github.base_ref }} | tr '\n' ' ') export CHANGED_FILES=$(git diff --name-only --diff-filter=AM remotes/origin/${{ github.base_ref }} | tr '\n' ' ')
phpcs -q -n --report=checkstyle $GITHUB_WORKSPACE/tmp.php $(echo $CHANGED_FILES) -- -n | cs2pr phpcs -q -n --report=checkstyle $GITHUB_WORKSPACE/tmp.php $(echo $CHANGED_FILES) | cs2pr
phpunit: phpunit:
name: PHP Unit Tests name: PHP Unit Tests