File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Static analysis
22
33on :
4- push :
5- branches :
6- - master
7- pull_request :
4+ pull_request : ~
85
96jobs :
107 phpstan :
118 name : PHPStan
12- runs-on : ubuntu-latest
13-
9+ runs-on : ubuntu-20.04
10+
1411 steps :
1512 - name : Checkout code
1613 uses : actions/checkout@v2
1714
18- - name : PHPStan
19- uses : docker://oskarstark/phpstan-ga
15+ - name : Setup PHP
16+ uses : shivammathur/setup-php@v2
2017 with :
21- args : analyze --no-progress
18+ php-version : 8.0
19+ coverage : none
20+ tools : phpstan:0.12.88, cs2pr
21+
22+ - name : Download dependencies
23+ uses : ramsey/composer-install@v1
24+
25+ - name : PHPStan
26+ run : phpstan analyze --no-progress --error-format=checkstyle | cs2pr
2227
2328 php-cs-fixer :
2429 name : PHP-CS-Fixer
25- runs-on : ubuntu-latest
30+ runs-on : ubuntu-20.04
2631
2732 steps :
2833 - name : Checkout code
2934 uses : actions/checkout@v2
3035
36+ - name : Setup PHP
37+ uses : shivammathur/setup-php@v2
38+ with :
39+ php-version : 8.0
40+ coverage : none
41+ tools : php-cs-fixer:2.19.0, cs2pr
42+
3143 - name : PHP-CS-Fixer
32- uses : docker://oskarstark/php-cs-fixer-ga
44+ run : php-cs-fixer fix --dry-run --format=checkstyle | cs2pr
45+
46+ psalm :
47+ name : Psalm
48+ runs-on : ubuntu-20.04
49+ steps :
50+ - name : Checkout code
51+ uses : actions/checkout@v2
52+
53+ - name : Setup PHP
54+ uses : shivammathur/setup-php@v2
3355 with :
34- args : --dry-run --diff-format udiff
56+ php-version : 8.0
57+ coverage : none
58+ tools : vimeo/psalm:4.7.2
59+
60+ - name : Download dependencies
61+ uses : ramsey/composer-install@v1
62+
63+ - name : Psalm
64+ run : psalm --no-progress --output-format=github
65+
66+ composer-normalize :
67+ name : Composer Normalize
68+ runs-on : ubuntu-20.04
69+
70+ steps :
71+ - name : Setup PHP
72+ uses : shivammathur/setup-php@v2
73+ with :
74+ php-version : 7.4
75+ coverage : none
76+ tools : composer-normalize
77+
78+ - name : Checkout code
79+ uses : actions/checkout@v2
80+
81+ - name : Normalize
82+ run : composer-normalize --dry-run
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <psalm
3+ errorLevel =" 2"
4+ resolveFromConfigFile =" true"
5+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
6+ xmlns =" https://getpsalm.org/schema/config"
7+ xsi : schemaLocation =" https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+ >
9+ <projectFiles >
10+ <directory name =" src" />
11+ <ignoreFiles >
12+ <directory name =" vendor" />
13+ </ignoreFiles >
14+ </projectFiles >
15+ </psalm >
You can’t perform that action at this time.
0 commit comments