From 7b0304daa48f38315cdc99cb20a13915bbdc32e3 Mon Sep 17 00:00:00 2001 From: Siarhei Luskanau Date: Sun, 16 Aug 2026 08:52:21 +0200 Subject: [PATCH] Fix Test Github Action pipeline --- .github/workflows/test.yaml | 2 +- .../wizard/files/kmpLibrary/sample/SampleComposeApp.kt | 10 ++++++++-- .../kotlin/wizard/GeneratedComposeAppProjectTest.kt | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index bea89da..f541cad 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -41,6 +41,6 @@ jobs: - name: Upload Reports uses: actions/upload-artifact@v4 with: - name: Test-Reports + name: Test-Reports-${{ matrix.os }} path: build/reports if: always() diff --git a/src/commonMain/kotlin/wizard/files/kmpLibrary/sample/SampleComposeApp.kt b/src/commonMain/kotlin/wizard/files/kmpLibrary/sample/SampleComposeApp.kt index f71942c..6f7faa3 100644 --- a/src/commonMain/kotlin/wizard/files/kmpLibrary/sample/SampleComposeApp.kt +++ b/src/commonMain/kotlin/wizard/files/kmpLibrary/sample/SampleComposeApp.kt @@ -37,10 +37,16 @@ class SampleSharedUIBuildGradleKts(info: ProjectInfo) : ProjectFile { appendLine(" }") } if (info.hasPlatform(ProjectPlatform.Js)) { - appendLine(" js { browser() }") + appendLine(" js {") + appendLine(" browser()") + appendLine(" binaries.executable()") + appendLine(" }") } if (info.hasPlatform(ProjectPlatform.Wasm)) { - appendLine(" wasmJs { browser() }") + appendLine(" wasmJs {") + appendLine(" browser()") + appendLine(" binaries.executable()") + appendLine(" }") } if (info.hasPlatform(ProjectPlatform.Ios)) { appendLine(" iosArm64()") diff --git a/src/jvmTest/kotlin/wizard/GeneratedComposeAppProjectTest.kt b/src/jvmTest/kotlin/wizard/GeneratedComposeAppProjectTest.kt index 5a324f3..06589f0 100644 --- a/src/jvmTest/kotlin/wizard/GeneratedComposeAppProjectTest.kt +++ b/src/jvmTest/kotlin/wizard/GeneratedComposeAppProjectTest.kt @@ -240,7 +240,7 @@ class GeneratedComposeAppProjectTest { .filter { it.getBoolean("isAvailable") } .filter { if (System.getenv("CI").toBoolean()) { - listOf("iphone 15", "iphone 14").any { device -> + listOf("iphone 1").any { device -> it.getString("name").contains(device, true) } } else {