From e254dfbb9c013e3ac05785bbbd9aefe3dc0a7a0e Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Wed, 6 Jul 2022 03:39:58 +0200 Subject: [PATCH] ci: Fix PHPCompatibility again (#2892) The fix in 66568e3a39c61546c09a47a5688914a0bdf3c60c prevented an error when installing phpcompatibility/php-compatibility but there was still a warning before that when installing dealerdirect/phpcodesniffer-composer-installer. With Composer 2.3.9, this is now an error too, so we need to move the config change before that: https://getcomposer.org/changelog/2.3.9 --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ec6561dd..13021e7c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -30,8 +30,8 @@ jobs: - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} - - run: composer global require dealerdirect/phpcodesniffer-composer-installer - run: composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true + - run: composer global require dealerdirect/phpcodesniffer-composer-installer - run: composer global require phpcompatibility/php-compatibility - run: ~/.composer/vendor/bin/phpcs . --standard=phpcompatibility.xml --warning-severity=0 --extensions=php -p