Make WordPress Core

Changeset 49175


Ignore:
Timestamp:
10/16/2020 05:12:16 PM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Specify the full working directory for PHPCS

Props ocean90.
See #50401.

Location:
trunk/.github/workflows
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/coding-standards.yml

    r49162 r49175  
    6161        run: |
    6262          composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction
    63           echo "vendor/bin" >> $GITHUB_PATH
     63          echo "${PWD}/vendor/bin" >> $GITHUB_PATH
    6464
    6565      - name: Log PHPCS debug information
     
    6767
    6868      - name: Run PHPCS on all Core files
    69         run: vendor/bin/phpcs -q -n --report=checkstyle | cs2pr
     69        run: phpcs -q -n --report=checkstyle | cs2pr
    7070
    7171      - name: Check test suite files for warnings
    72         run: vendor/bin/phpcs tests -q --report=checkstyle | cs2pr
     72        run: phpcs tests -q --report=checkstyle | cs2pr
    7373
    7474  # Runs the JavaScript coding standards checks.
  • trunk/.github/workflows/php-compatibility.yml

    r49162 r49175  
    6262        run: |
    6363          composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction
    64           echo "vendor/bin" >> $GITHUB_PATH
     64          echo "${PWD}/vendor/bin" >> $GITHUB_PATH
     65
     66      - name: Log PHPCS debug information
     67        run: phpcs -i
    6568
    6669      - name: Run PHP compatibility tests
    67         run: vendor/bin/phpcs --standard=phpcompat.xml.dist -q --report=checkstyle | cs2pr
     70        run: phpcs --standard=phpcompat.xml.dist -q --report=checkstyle | cs2pr
Note: See TracChangeset for help on using the changeset viewer.