File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ jobs:
2424 - name : Run linter
2525 run : npm run lint
2626
27- # - name: Run PHP linter
28- # run: |
29- # npm run wp-env start
30- # npm run lint:php
27+ - name : Run PHP linter
28+ run : |
29+ npm run wp-env start
30+ npm run lint:php
3131
3232 tests :
3333 name : Tests
Original file line number Diff line number Diff line change 2525 },
2626 "require-dev" : {
2727 "squizlabs/php_codesniffer" : " ^3.6" ,
28- "wp-coding-standards/wpcs" : " ^2.3 " ,
28+ "wp-coding-standards/wpcs" : " dev-develop " ,
2929 "dealerdirect/phpcodesniffer-composer-installer" : " ^0.7.1" ,
3030 "wp-phpunit/wp-phpunit" : " ^5.8" ,
3131 "yoast/phpunit-polyfills" : " ^1.0"
3232 },
33+ "minimum-stability" : " dev" ,
34+ "prefer-stable" : true ,
3335 "scripts" : {
3436 "lint" : " phpcs --standard=phpcs.xml"
37+ },
38+ "config" : {
39+ "allow-plugins" : {
40+ "dealerdirect/phpcodesniffer-composer-installer" : true
41+ }
3542 }
3643}
You can’t perform that action at this time.
0 commit comments