rtCamp / github-actions-library

Collection of Github Actions useful for WordPress Deployments
93 stars 8 forks source link

Add `PHPCompatibilityWP` #11

Closed PatelUtkarsh closed 5 years ago

PatelUtkarsh commented 5 years ago

https://github.com/PHPCompatibility/PHPCompatibilityWP

_Originally posted by @PatelUtkarsh in https://github.com/rtCamp/github-actions-library/pull/7/review_comment/create_

PatelUtkarsh commented 5 years ago

One way to do this is to let composer handle this.

composer package dealerdirect/phpcodesniffer-composer-installer can help resolve path so we don't need to create softlinks.

composer global require dealerdirect/phpcodesniffer-composer-installer --update-no-dev
composer global require wp-coding-standards/wpcs --update-no-dev
composer global require automattic/vipwpcs --update-no-dev
composer global require phpcompatibility/php-compatibility --update-no-dev

Ideally, each project should have required package from above inside it's composer as dev depedency but until then we can use this. @mrrobot47