Skip to content

Commit

Permalink
[aws-serverless] Allow to test AwsLambdaRuntime in native
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed May 19, 2023
1 parent 18cbdea commit 0956525
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0956525

Please sign in to comment.