intellij-platform-gradle-plugin
intellij-platform-gradle-plugin copied to clipboard
Fix integration tests on Windows runners
There were 2 issues:
- Kotlin scripts were called using Bash syntax, but GitHub Actions Windows runners use PowerShell by default and it silently (I don't know why) failed. Fortunately, they support Bash, so the fix is to explicitly define
shell: bash. - Gradle process created in
verify.utils.ktsused Unix-specific Gradle scripts, not Batches. I added appending.batextension to the script's name when the current OS is Windows. I did it inverify.utils.ktsbecause otherwise, developers using Windows won't be able to run it locally.
Current status: the problem is in buildSearchableOptions on Windows systems. It can be easily reproduced locally (I did it with Windows running on VirtualBox). For some reason, the started IDE process doesn't finish and I didn't find why yet. I tested it with multiple JBR versions and it seems unrelated. It is also unrelated to the type of plugin (paid/free).
It may be the Gradle issue (I didn't verify it yet): https://github.com/gradle/gradle/issues/3987