Skip to content

Commit

Permalink
Add new dep analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Oct 3, 2024
1 parent eb6332e commit fbeebcc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,14 @@ jobs:
coverage: "none"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"
tools: "composer-require-checker, composer-unused"

- name: "Install composer dependencies"
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"

- name: "Run maglnet/composer-require-checker"
run: "composer-require-checker check"

- name: "Run composer-unused/composer-unused"
run: "composer-unused"
- name: "Run dependency analysis"
run: "vendor/bin/composer-dependency-analyser"

static-code-analysis:
name: "Static Code Analysis"
Expand Down
7 changes: 7 additions & 0 deletions composer-dependency-analyser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;

return (new Configuration())
->addPathToExclude(__DIR__ . '/tests')
;
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"require-dev": {
"phpseclib/phpseclib": "^3.0",
"phpunit/phpunit": "^10.5",
"setono/code-quality-pack": "^2.8.2"
"setono/code-quality-pack": "^2.8.2",
"shipmonk/composer-dependency-analyser": "^1.7"
},
"prefer-stable": true,
"autoload": {
Expand Down

0 comments on commit fbeebcc

Please sign in to comment.