File tree Expand file tree Collapse file tree 3 files changed +30
-6
lines changed Expand file tree Collapse file tree 3 files changed +30
-6
lines changed Original file line number Diff line number Diff line change 1+ name : Coding Style
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ nette_cc :
7+ name : Nette Code Checker
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v2
11+ - uses : shivammathur/setup-php@v2
12+ with :
13+ php-version : 7.4
14+ coverage : none
15+
16+ - run : composer create-project nette/code-checker temp/code-checker ^3 --no-progress
17+ - run : php temp/code-checker/code-checker --strict-types --no-progress
18+
19+ nette_cs :
20+ name : Nette Coding Standard
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v2
24+ - uses : shivammathur/setup-php@v2
25+ with :
26+ php-version : 8.0
27+ coverage : none
28+
29+ - run : composer create-project nette/coding-standard temp/coding-standard ^3 --no-progress --ignore-platform-reqs
30+ - run : php temp/coding-standard/ecs check src
Original file line number Diff line number Diff line change 3232 - name : The PHP Security Checker
3333 uses : symfonycorp/security-checker-action@v2
3434
35- - name : Check coding standards
36- run : |
37- php temp/code-checker/code-checker --short-arrays --strict-types --fix --no-progress
38- php temp/coding-standard/ecs check src --config temp/coding-standard/coding-standard-php71.yml
39-
4035 - name : Check PHPStan rules
4136 run : composer phpstan
Original file line number Diff line number Diff line change 1515 "phpstan/phpstan" : " ^0.12.52" ,
1616 "tracy/tracy" : " ^2.8" ,
1717 "phpstan/phpstan-nette" : " ^0.12.9" ,
18- "symplify/easy-coding-standard" : " ^7.2" ,
1918 "spaze/phpstan-disallowed-calls" : " ^1.1"
2019 },
2120 "autoload" : {
You can’t perform that action at this time.
0 commit comments