From b52dd8a17373a0e9106a15cf7de692874b88a5bb Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 16 Oct 2020 17:12:16 +0000 Subject: [PATCH] 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 --- .github/workflows/coding-standards.yml | 6 +++--- .github/workflows/php-compatibility.yml | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 4623b99fd7..61aa266552 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -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. # diff --git a/.github/workflows/php-compatibility.yml b/.github/workflows/php-compatibility.yml index 99d143c3f8..b2d45384e8 100644 --- a/.github/workflows/php-compatibility.yml +++ b/.github/workflows/php-compatibility.yml @@ -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