intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

Fix integration tests on Windows runners

Open karollewandowski opened this issue 3 years ago • 1 comments

There were 2 issues:

  1. 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.
  2. Gradle process created in verify.utils.kts used Unix-specific Gradle scripts, not Batches. I added appending .bat extension to the script's name when the current OS is Windows. I did it in verify.utils.kts because otherwise, developers using Windows won't be able to run it locally.

karollewandowski avatar Jun 14 '22 14:06 karollewandowski

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

karollewandowski avatar Jul 01 '22 12:07 karollewandowski