-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add PHP support for TCR #2
base: master
Are you sure you want to change the base?
Conversation
mob-timer: | ||
duration: 5m0s | ||
tcr: | ||
language: pho |
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.
Typo: language should be php
- os: [windows] | ||
arch: ["386", amd64, arm64] | ||
command: .\vendor\bin\phpunit | ||
arguments: [--list-tests] |
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.
From I could see, running phpunit --list-tests
allows to detect syntax errors in the test files (which is good), but it does not seem to spot syntax error in source files. Do you know of any other php tool that could run syntax check on both src and test files?
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.
I've just tried an alternative tool to run the syntax check that seems to do the job: php-parallel-lint
When running the command parallel-lint --exclude vendor .
I get RC=0 if all src and test files are syntaxically correct, and RC=1 when any of these is not
Add PHP support for TCR