Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Specify the working directory for PHPCS to change phpcs globally.
  • Loading branch information
desrosj committed Oct 16, 2020
commit 1707d05a603b8336c2a0c99ee7f6bf379be5c900
6 changes: 3 additions & 3 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/php-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ 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: 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