Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ jobs:
with:
# Should be the highest supported version, so we can use the newest tools
php-version: '8.5'
tools: composer, composer-require-checker, composer-unused, phpcs
tools: composer, composer-dependency-analyser
extensions: ctype, date, dom, filter, hash, mbstring, openssl, pcre, soap, spl, xml
coverage: none

Expand All @@ -204,11 +204,8 @@ jobs:
- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Check code for hard dependencies missing in composer.json
run: composer-require-checker check --config-file=tools/composer-require-checker.json composer.json

- name: Check code for unused dependencies in composer.json
run: composer-unused
- name: Check code for missing or unused dependencies
run: composer-dependency-analyser --verbose --config=tools/composer-dependency-analyser.php

- name: PHP Code Sniffer
run: vendor/bin/phpcs
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"ext-zlib": "*",

"guzzlehttp/guzzle": "^7.8 || ^8.0",
"guzzlehttp/promises": "^2.5 || ^3.0",
"guzzlehttp/psr7": "^2.7 || ^3.0",
"psr/http-client": "^1",
"psr/http-message": "^2",
"psr/log": "^3",
"psr/simple-cache": "^3",
Expand Down
11 changes: 11 additions & 0 deletions tools/composer-dependency-analyser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;

return (new Configuration())
// Ignore suggested optional dependency
->ignoreErrorsOnExtension('ext-curl', [ErrorType::SHADOW_DEPENDENCY]);

13 changes: 0 additions & 13 deletions tools/composer-require-checker.json

This file was deleted.