Skip to content

Commit

Permalink
fix gha
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas committed Jul 16, 2024
1 parent 14f3902 commit 607fd59
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/')
Expand Down
4 changes: 0 additions & 4 deletions routes/src/app.route.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
1 change: 0 additions & 1 deletion sjsls/test/src/liveServer.test.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 607fd59

Please sign in to comment.