-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resolves #4 : QA Pipeline #16
Conversation
969cec7
to
2425012
Compare
@@ -56,4 +56,9 @@ public function __construct( | |||
|
|||
$this->_openActions[] = ImsCallback::ACTION_NAME; | |||
} | |||
|
|||
private function unusedMethod() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of this method? Left over debug code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be seen so, yes. I want to execute PHPMD only on the changed files within a PR to speed up the process. To test this behavior, I need a PHPMD error :). Can be removed as soon as I've seen the result and the nightly builds run again.
c0c02c5
to
be35899
Compare
Switched to bin/magento execution WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions Replaced tests:run with native phpmd Changed Output Format to GitHub Fixed scope WIP - Working on Github Actions WIP - Working on Github Actions run only for changed files and PRs WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions wip Changed matrix to latest Back to currently-supported as latest doesnt work Used a custom step to get changed files fixed my mess syntax changed action for changed files WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions WIP - Working on Github Actions
d51f52b
to
d9d8e94
Compare
@DavidLambauer is this PR still a work-in-progress? |
Yeh, I'll work on it. As we now have the GitHub Actions Repo, I'll transfer everything to there and push an action for PHPMD |
Will move this to the github actions repo |
This PR introduces a QA Workflow that uses a Matrix to spin up the same jobs with different parameters. Right now, the matrix is set to
supported-versions
, equivalent to Adobe's support lifecycle. I assume the matrix will change, but to me, it makes sense to have the option to test a PR against different variations of dependencies.For now, the only test that runs is PHPMD. I used the Magento Ruleset. A complete run of PHPMD for all Magento Extensions takes around an hour, which is way too long. I only run PHPMD on the changed files within a PR to speed up the feedback loop. This works great for
stupid
tools like PHPMD and PHPCS, but it might not be possible for PHPStan, Copy/Paste Detector, or similar tools.As the current full scan of PHPMD on Magento throws a lot of errors, I assume I messed up some parameters, or Magento works with a baseline. I haven't found one, so I assume this potential baseline is internal. We should discuss that baseline topic in a tech meeting.
The command to run PHPMD:
php vendor/bin/phpmd app/code github dev/tests/static/testsuite/Magento/Test/Php/_files/phpmd/ruleset.xml
fixes #4