8181 with :
8282 php-version : ${{ matrix.php }}
8383 extensions : ${{ env.EXTENSIONS }}
84- tools : composer, cs2pr
84+ tools : composer, cs2pr, phpcs
8585
8686 - uses : ramsey/composer-install@v3
8787 with :
9090 custom-cache-suffix : zemit-composer
9191
9292 - name : PHP Code Sniffer
93- run : vendor/bin/ phpcs -q --report=checkstyle | cs2pr --graceful-warnings
93+ run : phpcs -q --report=checkstyle | cs2pr --graceful-warnings
9494
9595 # PHP STATIC ANALYSIS
9696 static-analysis :
@@ -116,7 +116,7 @@ jobs:
116116 with :
117117 php-version : ${{ matrix.php }}
118118 extensions : ${{ env.EXTENSIONS }}
119- tools : composer, cs2pr
119+ tools : composer, cs2pr, phpstan
120120
121121 - uses : ramsey/composer-install@v3
122122 with :
@@ -125,7 +125,7 @@ jobs:
125125 custom-cache-suffix : zemit-composer
126126
127127 - name : PHP Stan
128- run : ./vendor/bin/ phpstan
128+ run : phpstan
129129
130130 # PHP PSALM
131131 php-security :
@@ -169,7 +169,7 @@ jobs:
169169 run : rm -rf ~/.cache/psalm
170170
171171 - name : Run Psalm Security Scan
172- run : ./vendor/bin/ psalm --config=psalm.xml --output-format=sarif > results.sarif
172+ run : psalm --config=psalm.xml --output-format=sarif > results.sarif
173173
174174 - name : Display SARIF results
175175 run : cat results.sarif
@@ -231,14 +231,21 @@ jobs:
231231 with :
232232 php-version : ${{ matrix.php }}
233233 extensions : ${{ env.EXTENSIONS }}
234- tools : composer, cs2pr
234+ tools : composer, cs2pr, phpunit
235235
236236 - uses : ramsey/composer-install@v3
237237 with :
238238 dependency-versions : ${{ matrix.dependencies }}
239239 composer-options : ${{ matrix.composer-options }}
240240 custom-cache-suffix : zemit-composer
241-
241+
242+ - name : Install Phalcon DevTools
243+ run : |
244+ composer global config minimum-stability dev
245+ composer global config prefer-stable true
246+ composer global require phalcon/devtools:^5.0 --no-interaction --no-progress
247+ echo "$(composer global config home)/vendor/bin" >> $GITHUB_PATH
248+
242249 - name : Set permissions and environment
243250 run : |
244251 chmod +x ./bin/* ./vendor/bin/* ./zemit
@@ -252,5 +259,5 @@ jobs:
252259 ./bin/migration-run.sh
253260
254261 - name : PHP Unit
255- run : ./vendor/bin/ phpunit
262+ run : phpunit
256263
0 commit comments