Skip to content

Commit 29a6501

Browse files
committed
Add Composer Dependency Analyser
1 parent 719371e commit 29a6501

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ jobs:
6060
strategy:
6161
matrix:
6262
include:
63-
- description: Validate composer.json
64-
script: composer validate
63+
- description: Composer checks
64+
script: vendor/bin/composer-dependency-analyser && composer validate
6565
- description: Code style
6666
script: vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run
6767
- description: Rector

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pre-commit-check: cs-fix psalm phpstan tests
1+
pre-commit-check: cs-fix psalm phpstan tests composer-check composer-validate
22

33
cs-fix:
44
vendor/bin/php-cs-fixer fix --verbose --ansi
@@ -15,4 +15,10 @@ phpstan:
1515
tests:
1616
vendor/bin/phpunit
1717

18+
composer-check:
19+
vendor/bin/composer-dependency-analyser
20+
21+
composer-validate:
22+
composer validate --strict
23+
1824
.PHONY: tests

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"phpstan/phpstan-phpunit": "2.0.6",
4343
"phpunit/phpunit": "^10 || ^11 || ^12",
4444
"rector/rector": "2.0.17",
45+
"shipmonk/composer-dependency-analyser": "^1.8",
4546
"symfony/phpunit-bridge": "^6.4 || ^7.0",
4647
"vimeo/psalm": "^6"
4748
}

0 commit comments

Comments
 (0)