Skip to content

Commit

Permalink
Run Composer Dependency Analyser in CI (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
xHeaven authored Dec 26, 2024
2 parents 9eb5187 + 4bb591f commit 0693409
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
php-version: '8.3'
coverage: none
tools: phpstan
tools: phpstan,composer-dependency-analyser

- name: Remove development dependencies
run: |
Expand All @@ -37,3 +37,8 @@ jobs:

- name: Run PHPStan
run: phpstan

- name: Run Composer Dependency Analyser
run: |
composer require --dev shipmonk/composer-dependency-analyser
composer exec -- composer-dependency-analyser
5 changes: 5 additions & 0 deletions composer-dependency-analyser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;

return (new Configuration)->addPathToExclude(__DIR__ . '/tests');
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"ext-mbstring": "*",
"spatie/laravel-package-tools": "^1.16",
"illuminate/collections": "^11.0",
"illuminate/contracts": "^11.0"
"illuminate/support": "^11.0"
},
"require-dev": {
"laravel/pint": "^1.15",
Expand Down

0 comments on commit 0693409

Please sign in to comment.