Skip to content

Commit

Permalink
[TASK] Add composer require checker
Browse files Browse the repository at this point in the history
Resolves #347
  • Loading branch information
lukaszuznanski committed Feb 9, 2022
1 parent cc62f32 commit 9a595b0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
- "php:copypaste"
- "php:stan"
- "composer:normalize"
- "composer:require-checker"
- "json:lint"
- "php:cs-fixer"
php-version:
Expand Down
1 change: 1 addition & 0 deletions .gitlab/pipeline/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ include:
- '/.gitlab/pipeline/jobs/.variables.yml'
- '/.gitlab/pipeline/jobs/build-composer-dependencies.yml'
- '/.gitlab/pipeline/jobs/composer-normalize.yml'
- '/.gitlab/pipeline/jobs/composer-require-checker.yml'
- '/.gitlab/pipeline/jobs/func-php7.2-v9.yml'
- '/.gitlab/pipeline/jobs/func-php7.2-v10.yml'
- '/.gitlab/pipeline/jobs/func-php7.3-v9.yml'
Expand Down
5 changes: 5 additions & 0 deletions .gitlab/pipeline/jobs/composer-require-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
composer-normalize:
extends: .default
stage: codestyle
script:
- composer ci:composer:require-checker
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"friendsofphp/php-cs-fixer": "^3.4.0",
"helmich/typo3-typoscript-lint": "^2.5.2",
"jangregor/phpstan-prophecy": "^1.0.0",
"maglnet/composer-require-checker": "^3.8",
"nimut/testing-framework": "^6.0.0",
"phpstan/extension-installer": "^1.1.0",
"phpstan/phpstan": "^1.2.0",
Expand Down Expand Up @@ -99,6 +100,7 @@
"@ci:static"
],
"ci:composer:normalize": "@composer normalize --dry-run",
"ci:composer:require-checker": ".Build/vendor/bin/composer-require-checker check",
"ci:coverage": [
"@ci:coverage:unit",
"@ci:coverage:functional"
Expand Down Expand Up @@ -181,6 +183,7 @@
"scripts-descriptions": {
"ci": "Runs all dynamic and static code checks.",
"ci:composer:normalize": "Checks the composer.json.",
"ci:composer:require-checker": "Analyze composer dependencies and verify that no unknown symbols are used.",
"ci:coverage:functional": "Generates the code coverage report for functional tests.",
"ci:coverage:merge": "Merges the code coverage reports for unit and functional tests.",
"ci:coverage:unit": "Generates the code coverage report for unit tests.",
Expand Down

0 comments on commit 9a595b0

Please sign in to comment.