Skip to content

Commit

Permalink
Run tests on last binary version published
Browse files Browse the repository at this point in the history
  • Loading branch information
lolgab committed Nov 15, 2023
1 parent 7169155 commit e4303c3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,14 @@ class SshdModule(val crossScalaVersion: String) extends AmmModule{

def unitTest(scalaBinaryVersion: String) = {
def cross[T <: AmmInternalModule](module: Cross[T]) =
module.items.find(_._1.head.asInstanceOf[String].startsWith(scalaBinaryVersion)).last._2
module
.items
.reverse
.collectFirst {
case (List(key: String), mod) if key.startsWith(scalaBinaryVersion) => mod
}
.getOrElse(sys.error(s"$module doens't have versions for $scalaBinaryVersion"))

T.command{
cross(terminal).test.test()()
cross(amm.repl).test.test()()
Expand Down

0 comments on commit e4303c3

Please sign in to comment.