From 63fcb473ceb4718e9af1843221488837ae268073 Mon Sep 17 00:00:00 2001 From: Oleg Yukhnevich Date: Sun, 1 Dec 2024 16:03:48 +0200 Subject: [PATCH] run wasm tests --- .github/workflows/run-tests.yml | 10 ++-------- .../kotlin/rsocketbuild.multiplatform-base.gradle.kts | 7 +++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 0030a4bb..21ae3996 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -33,16 +33,10 @@ jobs: fail-fast: false matrix: os: [ 'ubuntu-latest' ] - target: [ 'jvm', 'jvm11', 'jvm17', 'jvm21', 'js', 'native' ] + target: [ 'jvmAll', 'jsAndWasm', 'native' ] include: - os: 'macos-latest' - target: 'macos' - - os: 'macos-latest' - target: 'ios' - - os: 'macos-latest' - target: 'watchos' - - os: 'macos-latest' - target: 'tvos' + target: 'native' - os: 'windows-latest' target: 'native' steps: diff --git a/build-logic/src/main/kotlin/rsocketbuild.multiplatform-base.gradle.kts b/build-logic/src/main/kotlin/rsocketbuild.multiplatform-base.gradle.kts index 5bf4bd64..fe25fefe 100644 --- a/build-logic/src/main/kotlin/rsocketbuild.multiplatform-base.gradle.kts +++ b/build-logic/src/main/kotlin/rsocketbuild.multiplatform-base.gradle.kts @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.gradle.* import org.jetbrains.kotlin.gradle.plugin.* import org.jetbrains.kotlin.gradle.plugin.mpp.* import org.jetbrains.kotlin.gradle.targets.js.ir.* +import org.jetbrains.kotlin.gradle.targets.js.testing.* import org.jetbrains.kotlin.gradle.targets.jvm.* import org.jetbrains.kotlin.gradle.targets.jvm.tasks.* import org.jetbrains.kotlin.gradle.targets.native.tasks.* @@ -111,6 +112,12 @@ registerTestAggregationTask( targetFilter = { it.platformType == KotlinPlatformType.jvm } ) +registerTestAggregationTask( + name = "jsAndWasmTest", + taskDependencies = { tasks.withType() }, + targetFilter = { it.platformType == KotlinPlatformType.js || it.platformType == KotlinPlatformType.wasm } +) + registerTestAggregationTask( name = "nativeTest", taskDependencies = { tasks.withType().matching { it.enabled } },