diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index d0e97af2..8acd6de0 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -1,7 +1,7 @@ # @Author: Roni Laukkarinen # @Date: 2023-02-15 17:39:37 # @Last Modified by: Roni Laukkarinen -# @Last Modified time: 2024-02-14 17:02:41 +# @Last Modified time: 2024-02-14 17:07:55 name: PHP on: [push, pull_request] @@ -35,10 +35,6 @@ jobs: php_version: "7.4" version: "2.3.7" args: "--ignore-platform-reqs --optimize-autoloader" - run: | - composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true - composer global require --dev wp-coding-standards/wpcs:"^3.0" - composer global require --dev phpcompatibility/php-compatibility:"*" - name: Run PHP_CodeSniffer run: | diff --git a/composer.json b/composer.json new file mode 100644 index 00000000..54fe581c --- /dev/null +++ b/composer.json @@ -0,0 +1,11 @@ +{ + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } + }, + "require-dev": { + "wp-coding-standards/wpcs": "^3.0", + "phpcompatibility/php-compatibility": "*" + } +}