File tree Expand file tree Collapse file tree 5 files changed +36
-29
lines changed Expand file tree Collapse file tree 5 files changed +36
-29
lines changed Original file line number Diff line number Diff line change 1+ on : [push]
2+ name : Static analysis
3+ jobs :
4+ phpstan :
5+ name : PHPStan
6+ runs-on : ubuntu-latest
7+ steps :
8+ - uses : actions/checkout@master
9+ - name : PHPStan
10+ uses : docker://oskarstark/phpstan-ga
11+ with :
12+ args : analyze --no-progress
13+
14+ php-cs-fixer :
15+ name : PHP-CS-Fixer
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@master
19+ - name : PHP-CS-Fixer
20+ uses : docker://oskarstark/php-cs-fixer-ga
21+ with :
22+ args : --dry-run --diff-format udiff
Original file line number Diff line number Diff line change 1- build /
21composer.lock
32composer.phar
43phpunit.xml
54vendor /
5+ .php_cs.cache
Original file line number Diff line number Diff line change 11<?php
22
3- /*
4- * In order to make it work, fabpot/php-cs-fixer and sllh/php-cs-fixer-styleci-bridge must be installed globally
5- * with composer.
6- *
7- * @link https://github.com/Soullivaneuh/php-cs-fixer-styleci-bridge
8- * @link https://github.com/FriendsOfPHP/PHP-CS-Fixer
9- */
10-
11- use SLLH \ StyleCIBridge \ ConfigBridge ;
12-
13- return ConfigBridge:: create () ;
3+ $ finder = PhpCsFixer \Finder:: create ()
4+ -> in ( __DIR__ )
5+ -> exclude ( __DIR__ . ' /vendor ' )
6+ ;
7+ return PhpCsFixer \Config:: create ()
8+ -> setRules ([
9+ ' @Symfony ' => true ,
10+ ' array_syntax ' => [ ' syntax ' => ' short ' ],
11+ ])
12+ -> setFinder ( $ finder )
13+ ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ matrix:
2424 - php : 7.0
2525 - php : 7.1
2626 - php : 7.2
27- env : COVERAGE=true PHPUNIT_FLAGS="-v --testsuite main --coverage-text --coverage-clover=build/coverage.xml" DEPENDENCIES="phpstan/phpstan"
27+ - php : 7.3
28+ env : COVERAGE=true PHPUNIT_FLAGS="-v --testsuite main --coverage-text --coverage-clover=build/coverage.xml"
2829
2930 - php : 7.1
3031 # We need `--prefer-source`, otherwise the `Doctrine\Tests\OrmTestCase` class won't be found.
@@ -54,10 +55,6 @@ install:
5455script :
5556 - composer validate --strict --no-check-lock
5657 - ./vendor/bin/simple-phpunit $PHPUNIT_FLAGS
57- - |
58- if [[ $COVERAGE == true ]]; then
59- vendor/bin/phpstan analyze -c phpstan.neon.dist --no-interaction --no-progress
60- fi
6158
6259after_success :
6360 - if [[ $COVERAGE = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
You can’t perform that action at this time.
0 commit comments