From 607fd597ab28be7ab9d64a1897b92653e75a2f49 Mon Sep 17 00:00:00 2001 From: Simon Parten Date: Wed, 17 Jul 2024 00:09:46 +0200 Subject: [PATCH] fix gha --- .github/workflows/ci.yml | 2 +- routes/src/app.route.scala | 4 ---- sjsls/test/src/liveServer.test.scala | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b4a469..2c5050e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,7 @@ jobs: run: mill __.compile - name: Test - run: mill project.test + run: mill __.test publish: if: github.repository == 'Quafadas/live-server-scala-cli-js' && contains(github.ref, 'refs/tags/') diff --git a/routes/src/app.route.scala b/routes/src/app.route.scala index 35e60bc..80a8ad7 100644 --- a/routes/src/app.route.scala +++ b/routes/src/app.route.scala @@ -15,15 +15,11 @@ import org.http4s.Status def appRoute[F[_]: Files: MonadThrow](stringPath: String)(using f: Async[F]): HttpRoutes[F] = HttpRoutes.of[F] { case req @ GET -> Root / fName ~ "js" => - println(stringPath) - println(req.uri.path.renderString) StaticFile .fromPath(fs2.io.file.Path(stringPath) / req.uri.path.renderString, Some(req)) .getOrElseF(f.pure(Response[F](Status.NotFound))) case req @ GET -> Root / fName ~ "map" => - println(req.uri.path.renderString) - println(req.uri.path.renderString) StaticFile .fromPath(fs2.io.file.Path(stringPath) / req.uri.path.renderString, Some(req)) .getOrElseF(f.pure(Response[F](Status.NotFound))) diff --git a/sjsls/test/src/liveServer.test.scala b/sjsls/test/src/liveServer.test.scala index bf5c228..99f75df 100644 --- a/sjsls/test/src/liveServer.test.scala +++ b/sjsls/test/src/liveServer.test.scala @@ -98,7 +98,6 @@ trait PlaywrightTest extends CatsEffectSuite: os.makeDir(staticDir) os.write.over(tempDir / "hello.scala", helloWorldCode("Hello")) os.write.over(staticDir / "index.less", "h1{color:red}") - println(vanilla.render) os.write.over(staticDir / "index.html", vanilla.render) (tempDir, staticDir) }.flatTap {