Skip to content

Commit

Permalink
Don't run Scala 3 tests on SBT 0.13.x
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Sep 25, 2023
1 parent e520f37 commit 0938b3d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/buildTools/src/test/scala/tests/SbtBuildToolSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@ package tests

abstract class SbtBuildToolSuite(val sbtVersion: String)
extends BaseBuildToolSuite {
List("2.11.9", "2.12.18", "2.13.11", "3.3.0").foreach { scalaVersion =>
val scala2Versions = List("2.11.9", "2.12.18", "2.13.11")
val scala3Versions = List("3.3.1")

val versions =
sbtVersion match {
case s"0.13.$any" =>
scala2Versions
case s"1.$any" =>
scala2Versions ++ scala3Versions
}

versions.foreach { scalaVersion =>
checkBuild(
s"basic-sbt=$sbtVersion-scala=$scalaVersion",
s"""|/build.sbt
Expand Down

0 comments on commit 0938b3d

Please sign in to comment.