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