forked from pepite/lunatech-blog-engine
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into update/github4s-0.32.0
- Loading branch information
Showing
22 changed files
with
48 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.19") | ||
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.9.0-RC3") | ||
addSbtPlugin("io.github.irundaia" % "sbt-sassify" % "1.5.2") | ||
ThisBuild / libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
import org.scalatestplus.play.PlaySpec | ||
import org.scalatestplus.play.guice.GuiceOneServerPerSuite | ||
import play.api.libs.ws.WSClient | ||
import org.scalatest._ | ||
import org.scalatestplus.play._ | ||
|
||
import play.api.test._ | ||
import play.api.test.Helpers.{GET => GET_REQUEST, _} | ||
import play.api.Application | ||
import play.api.inject.guice.GuiceApplicationBuilder | ||
|
||
class SmokeTest extends PlaySpec with GuiceOneServerPerSuite { | ||
|
||
override def fakeApplication(): Application = { | ||
GuiceApplicationBuilder() | ||
.configure( | ||
"accessToken" -> sys.env.get("GITHUB_TOKEN").getOrElse("dummy") | ||
) | ||
.build() | ||
} | ||
|
||
"should return some page" in { | ||
val wsClient = app.injector.instanceOf[WSClient] | ||
val response = await(wsClient.url(s"http://localhost:$port/").withVirtualHost("blog.lunatech.com").get()) | ||
response.status mustBe OK | ||
} | ||
} |