Skip to content

Commit 8e520f8

Browse files
committed
Add analyze-dependencies CI job
1 parent dac3f58 commit 8e520f8

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ jobs:
5454
description: 'with Coding Standards'
5555
coding-standards: true
5656

57+
# Dependencies
58+
- php-version: '8.4'
59+
description: 'with Analyze dependencies'
60+
analyze-dependencies: true
61+
5762
#Static Analysis (min PHP version)
5863
- php-version: '8.1'
5964
description: 'with Static Analysis'
@@ -112,23 +117,23 @@ jobs:
112117
run: composer update --no-interaction --no-progress ${{ matrix.composer-flags }}
113118

114119
- name: Run PHPUnit
115-
if: matrix.coding-standards != true && matrix.static-analysis != true
120+
if: matrix.coding-standards != true && matrix.analyze-dependencies != true && matrix.static-analysis != true
116121
run: php vendor/phpunit/phpunit/phpunit
117122

118123
- name: Run PHP CS Fixer
119124
if: matrix.coding-standards
120125
run: php vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --diff --dry-run -v
121126

122-
- name: Analyze composer dependencies
127+
- name: Check license year
123128
if: matrix.coding-standards
129+
run: cat LICENSE |grep -E "\(c\) ([0-9]+\-)*`date +%Y`"
130+
131+
- name: Analyze composer dependencies
132+
if: matrix.analyze-dependencies
124133
run: |
125134
curl -LSs https://github.com/maglnet/ComposerRequireChecker/releases/latest/download/composer-require-checker.phar > composer-require-checker.phar
126135
php composer-require-checker.phar check composer.json
127136
128-
- name: Check license year
129-
if: matrix.coding-standards
130-
run: cat LICENSE |grep -E "\(c\) ([0-9]+\-)*`date +%Y`"
131-
132137
- name: Run PHPStan
133138
if: matrix.static-analysis
134139
run: php vendor/bin/phpstan --no-progress --error-format=github

0 commit comments

Comments
 (0)