File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 21
21
uses : shivammathur/setup-php@v2
22
22
with :
23
23
php-version : ${{ matrix.php-versions }}
24
- tools : phpunit:5
25
24
extensions : redis
26
25
27
26
- name : Setup problem matchers for PHP
37
36
run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
38
37
39
38
- name : Run PHPunit
40
- run : phpunit --configuration phpunit.xml.dist
39
+ run : ./vendor/bin/ phpunit --configuration phpunit.xml.dist
41
40
42
41
phpcs :
43
42
runs-on : ubuntu-latest
@@ -51,13 +50,13 @@ jobs:
51
50
uses : shivammathur/setup-php@v2
52
51
with :
53
52
php-version : ' 7.4'
54
- tools : cs2pr, phpcs
53
+ tools : cs2pr
55
54
56
55
- name : Setup problem matchers for PHP
57
56
run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
58
57
59
58
- name : Run PHPCS
60
- run : phpcs -q --report=checkstyle lib | cs2pr
59
+ run : ./vendor/bin/ phpcs -q --report=checkstyle lib | cs2pr
61
60
62
61
phpstan :
63
62
runs-on : ubuntu-latest
71
70
uses : shivammathur/setup-php@v2
72
71
with :
73
72
php-version : ' 7.4'
74
- tools : phpstan
75
73
76
74
- name : Setup problem matchers for PHP
77
75
run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
80
78
run : composer install
81
79
82
80
- name : Run PHPStan
83
- run : phpstan analyse lib -l1
81
+ run : ./vendor/bin/ phpstan analyse lib -l1
84
82
Original file line number Diff line number Diff line change 38
38
"ext-redis" : " Native PHP extension for Redis connectivity. Credis will automatically utilize when available."
39
39
},
40
40
"require-dev" : {
41
- "phpunit/phpunit" : " ^5.7"
41
+ "phpunit/phpunit" : " ^5.7" ,
42
+ "squizlabs/php_codesniffer" : " ^3.10" ,
43
+ "phpstan/phpstan" : " ^1.12"
42
44
},
43
45
"bin" : [
44
46
" bin/resque" ,
You can’t perform that action at this time.
0 commit comments