Skip to content

Commit 44ac016

Browse files
committed
Add analyze-dependencies CI job
1 parent 36c1774 commit 44ac016

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ jobs:
7272
description: 'with Coding Standards'
7373
coding-standards: true
7474

75+
# Dependencies
76+
- php-version: '8.4'
77+
description: 'with Analyze dependencies'
78+
analyze-dependencies: true
79+
7580
#Static Analysis (min PHP version)
7681
- php-version: '8.1'
7782
description: 'with Static Analysis'
@@ -137,16 +142,16 @@ jobs:
137142
if: matrix.coding-standards
138143
run: php vendor/bin/php-cs-fixer fix --diff --dry-run -v
139144

140-
- name: Analyze composer dependencies
145+
- name: Check license year
141146
if: matrix.coding-standards
147+
run: cat LICENSE |grep -E "\(c\) ([0-9]+\-)*`date +%Y`"
148+
149+
- name: Analyze composer dependencies
150+
if: matrix.analyze-dependencies
142151
run: |
143152
curl -LSs https://github.com/maglnet/ComposerRequireChecker/releases/latest/download/composer-require-checker.phar > composer-require-checker.phar
144153
php composer-require-checker.phar check composer.json
145154
146-
- name: Check license year
147-
if: matrix.coding-standards
148-
run: cat LICENSE |grep -E "\(c\) ([0-9]+\-)*`date +%Y`"
149-
150155
- name: Run PHPStan
151156
if: matrix.static-analysis
152157
run: php vendor/bin/phpstan --no-progress --error-format=github

0 commit comments

Comments
 (0)