Build/Test Tools: Specify the full working directory for PHPCS
Props ocean90. See #50401. git-svn-id: https://develop.svn.wordpress.org/trunk@49175 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
505fe2f0b8
commit
b52dd8a173
6
.github/workflows/coding-standards.yml
vendored
6
.github/workflows/coding-standards.yml
vendored
@ -60,16 +60,16 @@ jobs:
|
||||
- name: Install Composer dependencies
|
||||
run: |
|
||||
composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction
|
||||
echo "vendor/bin" >> $GITHUB_PATH
|
||||
echo "${PWD}/vendor/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Log PHPCS debug information
|
||||
run: phpcs -i
|
||||
|
||||
- name: Run PHPCS on all Core files
|
||||
run: vendor/bin/phpcs -q -n --report=checkstyle | cs2pr
|
||||
run: phpcs -q -n --report=checkstyle | cs2pr
|
||||
|
||||
- name: Check test suite files for warnings
|
||||
run: vendor/bin/phpcs tests -q --report=checkstyle | cs2pr
|
||||
run: phpcs tests -q --report=checkstyle | cs2pr
|
||||
|
||||
# Runs the JavaScript coding standards checks.
|
||||
#
|
||||
|
7
.github/workflows/php-compatibility.yml
vendored
7
.github/workflows/php-compatibility.yml
vendored
@ -61,7 +61,10 @@ jobs:
|
||||
- name: Install Composer dependencies
|
||||
run: |
|
||||
composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction
|
||||
echo "vendor/bin" >> $GITHUB_PATH
|
||||
echo "${PWD}/vendor/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Log PHPCS debug information
|
||||
run: phpcs -i
|
||||
|
||||
- name: Run PHP compatibility tests
|
||||
run: vendor/bin/phpcs --standard=phpcompat.xml.dist -q --report=checkstyle | cs2pr
|
||||
run: phpcs --standard=phpcompat.xml.dist -q --report=checkstyle | cs2pr
|
||||
|
Loading…
Reference in New Issue
Block a user