File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 2525 distribution : temurin
2626 java-version : ${{matrix.java}}
2727 - uses : sbt/setup-sbt@v1
28- - name : Test
29- run : sbt "setScalaVersion ${{matrix.scala}}" test core/headerCheck package
28+ - name : Test JVM
29+ run : sbt "setScalaVersion ${{matrix.scala}}" testJVM core/headerCheck package
30+ - name : Test Native
31+ run : sbt "setScalaVersion ${{matrix.scala}}" testNative
3032
3133 test-rc :
3234 strategy :
5254 java-version : ${{matrix.java}}
5355 - uses : sbt/setup-sbt@v1
5456 - name : Test
55- run : sbt "setScalaVersion ${{matrix.scala}}" test core/headerCheck package
57+ run : sbt "setScalaVersion ${{matrix.scala}}" testJVM core/headerCheck package
Original file line number Diff line number Diff line change @@ -107,3 +107,14 @@ commands += Command.single("setScalaVersion") { (state, arg) =>
107107 }
108108 command :: state
109109}
110+
111+ def testPlatformCommand (name : String , selector : ProjectMatrix => sbt.internal.ProjectFinder ): Command =
112+ Command .command(name) { state =>
113+ List (junit, scalacheck, testmacros)
114+ .flatMap(selector(_).get)
115+ .map{ project => s " ${project.id}/test " }
116+ .toList ::: state
117+ }
118+
119+ commands += testPlatformCommand(" testNative" , _.native)
120+ commands += testPlatformCommand(" testJVM" , _.jvm)
You can’t perform that action at this time.
0 commit comments