diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml index c2dcbed..0d5cc48 100644 --- a/.github/workflows/cs.yml +++ b/.github/workflows/cs.yml @@ -19,7 +19,7 @@ jobs: - name: Install PHP uses: shivammathur/setup-php@v2 with: - php-version: '7.4' + php-version: 'latest' coverage: none tools: cs2pr diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c420829..1550827 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,6 +44,10 @@ jobs: ini-values: error_reporting=E_ALL, display_errors=On coverage: ${{ matrix.coverage == true && 'xdebug' || 'none' }} + # YoastCS 3.0 has a PHP 7.2 minimum which conflicts with the requirements of this package. + - name: 'Composer: remove YoastCS' + run: composer remove --dev yoast/yoastcs --no-update --no-interaction + # Install dependencies and handle caching in one go. # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer - name: Install Composer dependencies - normal diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist index ff1e0a9..018a9a8 100644 --- a/.phpcs.xml.dist +++ b/.phpcs.xml.dist @@ -1,27 +1,27 @@ - Check the code of WP Test Utils. + Check the code of WP Test Utils. - + - . + . - - + + - - + + - - + + - - + + @@ -41,16 +41,25 @@ - - - - - - + + + + + + + + + + + - + + + *\.php + - + - - + + - - + + + /tests/*\.php + + + + + + + @@ -78,7 +95,7 @@ - + @@ -92,11 +109,6 @@ ############################################################################# --> - - - /src/*/bootstrap*\.php$ - - /src/BrainMonkey/bootstrap\.php$ @@ -116,9 +128,16 @@ /src/Helpers/*\.php$ - + + + + + /tests/*/Fixtures/*\.php$ + + + - /tests/*\.php$ + /tests/*/Fixtures/*\.php$ diff --git a/composer.json b/composer.json index 61b7462..bb2c1ca 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,9 @@ "yoast/phpunit-polyfills": "^1.1.0" }, "require-dev": { - "yoast/yoastcs": "^2.3.1" + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "yoast/yoastcs": "^3.0" }, "minimum-stability": "dev", "prefer-stable": true,