diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml new file mode 100644 index 000000000..ae5893f54 --- /dev/null +++ b/.github/workflows/composer-require-checker.yml @@ -0,0 +1,33 @@ +on: + pull_request: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + - 'infection.json.dist' + - 'phpunit.xml.dist' + - 'psalm.xml' + + push: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + - 'infection.json.dist' + - 'phpunit.xml.dist' + - 'psalm.xml' + +name: Composer require checker + +jobs: + composer-require-checker: + uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master + with: + os: >- + ['ubuntu-latest'] + php: >- + ['8.0', '8.1'] diff --git a/composer.json b/composer.json index 14fe1c7d1..41f260020 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,7 @@ "prefer-stable": true, "require": { "php": "^8.0", + "ext-ctype": "*", "ext-json": "*", "ext-mbstring": "*", "ext-pdo": "*", @@ -31,6 +32,7 @@ "yiisoft/strings": "^2.0" }, "require-dev": { + "maglnet/composer-require-checker": "^4.2", "phpunit/phpunit": "^9.5", "rector/rector": "^0.14", "roave/infection-static-analysis-plugin": "^1.16",