Skip to content

Commit

Permalink
Add support for Scala 3 and cross test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Nov 10, 2023
1 parent 6c9eb9e commit 1bfcc34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
distribution: 'temurin'
cache: 'sbt'
- name: Run tests
run: sbt test
run: sbt +test
# Optional: This step uploads information to the GitHub dependency graph and unblocking Dependabot alerts for the repository
#- name: Upload dependency graph
# uses: scalacenter/sbt-dependency-submission@ab086b50c947c9774b70f39fc7f6e20ca2706c91
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name := "play2-sockjs"
organization := "com.github.fdimuccio"

scalaVersion := "2.13.12"
crossScalaVersions := Seq("2.13.12")
crossScalaVersions := Seq("2.13.12", "3.3.1")
crossVersion := CrossVersion.binary

Test / javaOptions ++= Seq("-Xmx1g")
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/play/sockjs/core/transports/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Utils(server: Server) extends HeaderNames with Results {
/**
* iframe page (needed by iframe transports)
*/
def iframe = server.action { req: Request[AnyContent] =>
def iframe = server.action { (req: Request[AnyContent]) =>
val content = """|<!DOCTYPE html>
|<html>
|<head>
Expand Down

0 comments on commit 1bfcc34

Please sign in to comment.