From 08afb2415fcdaac64f956db0ee3bc1c98334987c Mon Sep 17 00:00:00 2001 From: Dmitriy Derepko Date: Fri, 15 Sep 2023 08:23:56 +0300 Subject: [PATCH] Add Composer Require Checker to CI (#51) Co-authored-by: Sergei Predvoditelev --- .../workflows/composer-require-checker.yml | 33 +++++++++++++++++++ composer.json | 1 + 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/composer-require-checker.yml diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml new file mode 100644 index 00000000..6cf3cefa --- /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', '8.2'] diff --git a/composer.json b/composer.json index 487b630a..cd180dea 100644 --- a/composer.json +++ b/composer.json @@ -30,6 +30,7 @@ "php": "^7.4|^8.0" }, "require-dev": { + "maglnet/composer-require-checker": "^3.8|^4.2", "phpunit/phpunit": "^9.5", "rector/rector": "^0.18.3", "roave/infection-static-analysis-plugin": "^1.16",