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 25
25
distribution : temurin
26
26
java-version : ${{matrix.java}}
27
27
- 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
30
32
31
33
test-rc :
32
34
strategy :
52
54
java-version : ${{matrix.java}}
53
55
- uses : sbt/setup-sbt@v1
54
56
- 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) =>
107
107
}
108
108
command :: state
109
109
}
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