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 /
2
1
composer.lock
3
2
composer.phar
4
3
phpunit.xml
5
4
vendor /
5
+ .php_cs.cache
Original file line number Diff line number Diff line change 1
1
<?php
2
2
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:
24
24
- php : 7.0
25
25
- php : 7.1
26
26
- 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"
28
29
29
30
- php : 7.1
30
31
# We need `--prefer-source`, otherwise the `Doctrine\Tests\OrmTestCase` class won't be found.
@@ -54,10 +55,6 @@ install:
54
55
script :
55
56
- composer validate --strict --no-check-lock
56
57
- ./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
61
58
62
59
after_success :
63
60
- if [[ $COVERAGE = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
You can’t perform that action at this time.
0 commit comments