diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b05ccda..eb7251d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,8 +57,13 @@ jobs: run: | # Allow the PHPCS composer-installer plugin (auto-registers standards). composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true - composer global require "wp-coding-standards/wpcs:^3.0" "phpcsstandards/phpcsutils:^1.0" --no-interaction - phpcs --config-set installed_paths "$(composer global config home)/vendor/wp-coding-standards/wpcs" + # WPCS 3.x requires PHPCSExtra (for the Universal.* and NormalizedArrays.* sniffs) + # AND phpcsutils. Installing the installer itself lets it auto-register the standards path. + composer global require --no-interaction \ + "dealerdirect/phpcodesniffer-composer-installer:^1.0" \ + "wp-coding-standards/wpcs:^3.0" \ + "phpcsstandards/phpcsutils:^1.0" \ + "phpcsstandards/phpcsextra:^1.0" - name: Run PHPCS run: | phpcs --standard=WordPress-Core \