diff --git a/build.sbt b/build.sbt index b64b1dc819..68d5f1e3a5 100644 --- a/build.sbt +++ b/build.sbt @@ -1438,6 +1438,13 @@ lazy val awsLambda: ProjectMatrix = (projectMatrix in file("serverless/aws/lambd ) ) .jvmPlatform(scalaVersions = scala2And3Versions) + .jsPlatform( + scalaVersions = scala2Versions, + Seq( + // Cross compiles only on JVM and Native + Test / unmanagedSources / excludeFilter ~= { _ || "AwsLambdaRuntimeInvocationTest.scala" } + ) + ) .nativePlatform(scalaVersions = scala2And3Versions) .dependsOn(serverCore, cats, catsEffect, circeJson, tests % "test") diff --git a/serverless/aws/lambda/src/test/scalajvm/sttp/tapir/serverless/aws/lambda/runtime/AwsLambdaRuntimeInvocationTest.scala b/serverless/aws/lambda/src/test/scala/sttp/tapir/serverless/aws/lambda/runtime/AwsLambdaRuntimeInvocationTest.scala similarity index 99% rename from serverless/aws/lambda/src/test/scalajvm/sttp/tapir/serverless/aws/lambda/runtime/AwsLambdaRuntimeInvocationTest.scala rename to serverless/aws/lambda/src/test/scala/sttp/tapir/serverless/aws/lambda/runtime/AwsLambdaRuntimeInvocationTest.scala index dac2d0978d..71acfaf03f 100644 --- a/serverless/aws/lambda/src/test/scalajvm/sttp/tapir/serverless/aws/lambda/runtime/AwsLambdaRuntimeInvocationTest.scala +++ b/serverless/aws/lambda/src/test/scala/sttp/tapir/serverless/aws/lambda/runtime/AwsLambdaRuntimeInvocationTest.scala @@ -12,6 +12,7 @@ import sttp.tapir._ import sttp.tapir.integ.cats.effect.CatsMonadError import sttp.tapir.serverless.aws.lambda.runtime.AwsLambdaRuntimeInvocationTest._ import sttp.tapir.serverless.aws.lambda.{AwsCatsEffectServerInterpreter, AwsCatsEffectServerOptions, AwsServerOptions} +import PlatformCompat._ import scala.collection.immutable.Seq