Closed ihor-sviziev closed 1 year ago
@ihor-sviziev could you outline a potential YAML file you'd like to see for such an action? Would you prefer a workflow or an action?
Partially fixed by #51 @ihor-sviziev can you give this a try?
@damienwebdev I just checked - in general looks good.
The only thing is missing for me - ability to add additional phpcs params, for instance --ignore='*/js/lib/*'
Also, on PRs would be great to add a comments like in https://github.com/chekalsky/phpcs-action
@ihor-sviziev moving that to a separate issue.
Closing in favor of https://github.com/mage-os/github-actions/issues/10
:bulb: Feature request
Feature Name
Run Magento Coding Standards on top of my module(s)
The Desired Behavior
I'd like to have the ability to run the Magento Coding Standards static test for my module from the module' or from the project's repository. In addition to that, I'd like to select the Coding Standard version.
Also, I would like to have the ability to run PHP compatibility tests.
https://github.com/magento/magento-coding-standard https://github.com/PHPCompatibility/PHPCompatibility
Note: here are the examples: https://github.com/extdn/github-actions-m2/tree/master/magento-coding-standard https://github.com/extdn/github-actions-m2/tree/master/magento-copy-paste-detector https://github.com/extdn/github-actions-m2/tree/master/magento-mess-detector https://github.com/extdn/github-actions-m2/tree/master/magento-phpstan https://github.com/extdn/github-actions-m2/tree/master/php-compatibility
They are based on docker and do not support configuring the standard coding version, for instance.
TODO:
Your Use Case
Prior Work
Environment