File tree Expand file tree Collapse file tree 3 files changed +44
-29
lines changed Expand file tree Collapse file tree 3 files changed +44
-29
lines changed Original file line number Diff line number Diff line change
1
+ name : Code style and static analysis
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - master
8
+ - 3.5.x
9
+
10
+ jobs :
11
+ php-cs-fixer :
12
+ name : PHP-CS-Fixer
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v2
17
+
18
+ - name : Setup PHP
19
+ uses : shivammathur/setup-php@v2
20
+ with :
21
+ php-version : ' 7.4'
22
+
23
+ - name : Install dependencies
24
+ run : composer update --no-progress --no-interaction --prefer-dist
25
+
26
+ - name : Run script
27
+ run : composer phpcs
28
+
29
+ phpstan :
30
+ name : PHPStan
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - name : Checkout
34
+ uses : actions/checkout@v2
35
+
36
+ - name : Setup PHP
37
+ uses : shivammathur/setup-php@v2
38
+
39
+ - name : Install dependencies
40
+ run : composer update --no-progress --no-interaction --prefer-dist
41
+
42
+ - name : Run script
43
+ run : composer phpstan
Original file line number Diff line number Diff line change 65
65
with :
66
66
file : ' ./coverage.xml'
67
67
fail_ci_if_error : true
68
- PHP-CS-Fixer :
69
- runs-on : ubuntu-latest
70
- name : Code style
71
- steps :
72
- - uses : actions/checkout@v2
73
- - uses : actions/cache@v2
74
- with :
75
- path : ~/.composer/cache/files
76
- key : ' 7.4'
77
- - uses : shivammathur/setup-php@v2
78
- with :
79
- php-version : ' 7.4'
80
- - run : composer install --no-progress --ansi
81
- - run : vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run
82
- PHPStan :
83
- runs-on : ubuntu-latest
84
- name : PHPStan
85
- steps :
86
- - uses : actions/checkout@v2
87
- - uses : actions/cache@v2
88
- with :
89
- path : ~/.composer/cache/files
90
- key : ' 7.4'
91
- - uses : shivammathur/setup-php@v2
92
- with :
93
- php-version : ' 7.4'
94
- - run : composer install --no-progress --ansi
95
- - run : vendor/bin/phpstan analyse
Original file line number Diff line number Diff line change 30
30
"symfony/security-core" : " ^3.4||^4.0||^5.0"
31
31
},
32
32
"require-dev" : {
33
- "friendsofphp/php-cs-fixer" : " ^2.16 " ,
33
+ "friendsofphp/php-cs-fixer" : " ^2.17 " ,
34
34
"jangregor/phpstan-prophecy" : " ^0.8" ,
35
35
"monolog/monolog" : " ^1.3||^2.0" ,
36
36
"phpspec/prophecy" : " !=1.11.0" ,
You can’t perform that action at this time.
0 commit comments