|
54 | 54 | description: 'with Coding Standards' |
55 | 55 | coding-standards: true |
56 | 56 |
|
| 57 | + # Dependencies |
| 58 | + - php-version: '8.4' |
| 59 | + description: 'with Analyze dependencies' |
| 60 | + analyze-dependencies: true |
| 61 | + |
57 | 62 | #Static Analysis (min PHP version) |
58 | 63 | - php-version: '8.1' |
59 | 64 | description: 'with Static Analysis' |
@@ -112,23 +117,23 @@ jobs: |
112 | 117 | run: composer update --no-interaction --no-progress ${{ matrix.composer-flags }} |
113 | 118 |
|
114 | 119 | - 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 |
116 | 121 | run: php vendor/phpunit/phpunit/phpunit |
117 | 122 |
|
118 | 123 | - name: Run PHP CS Fixer |
119 | 124 | if: matrix.coding-standards |
120 | 125 | run: php vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --diff --dry-run -v |
121 | 126 |
|
122 | | - - name: Analyze composer dependencies |
| 127 | + - name: Check license year |
123 | 128 | 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 |
124 | 133 | run: | |
125 | 134 | curl -LSs https://github.com/maglnet/ComposerRequireChecker/releases/latest/download/composer-require-checker.phar > composer-require-checker.phar |
126 | 135 | php composer-require-checker.phar check composer.json |
127 | 136 |
|
128 | | - - name: Check license year |
129 | | - if: matrix.coding-standards |
130 | | - run: cat LICENSE |grep -E "\(c\) ([0-9]+\-)*`date +%Y`" |
131 | | - |
132 | 137 | - name: Run PHPStan |
133 | 138 | if: matrix.static-analysis |
134 | 139 | run: php vendor/bin/phpstan --no-progress --error-format=github |
0 commit comments