diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3b69618..01a6210 100755 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,6 +30,10 @@ jobs: - name: Install WordPress Coding Standards run: | + # Composer 2.2+ blocks plugins by default. The WPCS installer needs + # dealerdirect/phpcodesniffer-composer-installer to wire standards + # into PHPCS. Allow it globally before requiring WPCS. + 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"