-
Notifications
You must be signed in to change notification settings - Fork 4
Add windows on CI #30
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
base: main
Are you sure you want to change the base?
Conversation
|
I've updated directory separator to be normalized so it can works on windows. |
|
Ready to merge 👍 the pending CI needs to be replaced with new defined action. |
|
@ruudk Ready 👍 |
|
@ruudk do you think it is mergeable now? I only update the test part with no behaviour changed, just so it can run unit test on windows local dev. Thank you. |
| yield [ | ||
| "↳ <href=phpstorm://open?file=/www/project/src/Core/Admin/Controller/Dashboard/User/AddUserController.php&line=20>src/Core/Admin/.../User/AddUserController.php:20</>\n", | ||
| self::isWindows() | ||
| ? "↳ <href=phpstorm://open?file=/www/project/src/Core/Admin/Controller/Dashboard/User/AddUserController.php&line=20>src/Core/Admin/Controller/Dashboard/User/AddUserController.php:20</>\n" |
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.
On Windows, these paths don't make any sense. They should be using backslashes.
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.
This on IDE link works even on Windows, the data provider test may need change to use relative path that doesn't use root drive path as directory separator use / on relative path
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.
But when the formatter presents errors, on windows, you would like to see windows paths, right?
Why would you want to see linux paths there?
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.
The link should test show relative path, which formatter doesn't use DIRECTORY_SEPARATOR, it uses /.
The different is on windows, /.../ converted to parent directory, as this ternary use, I will check if it is possible to use relative path instead of include root drive
This PR add windows on CI so error on windows can be detected.