File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 39
39
retention-days : 2
40
40
- name : Cross compile everything
41
41
run : ./mill -i '__[_].compile'
42
+ - name : Build macros negative compilation tests
43
+ run : ./mill -i build-macros[_].test.testNegativeCompilation
42
44
- name : Unit tests
43
45
run : ./mill -i unitTests
44
46
- name : Convert Mill test reports to JUnit XML format
Original file line number Diff line number Diff line change @@ -313,19 +313,11 @@ trait BuildMacros extends ScalaCliCrossSbtModule
313
313
}
314
314
315
315
object test extends ScalaCliTests {
316
-
317
- // Is there a better way to add task dependency to test?
318
- def test (args : String * ): Command [(String , Seq [TestResult ])] = Task .Command {
319
- val res = super .test(args : _* )()
320
- testNegativeCompilation()()
321
- res
322
- }
323
-
324
316
def scalacOptions : Target [Seq [String ]] = Task {
325
317
super .scalacOptions() ++ asyncScalacOptions(scalaVersion())
326
318
}
327
319
328
- def testNegativeCompilation (): Command [Unit ] = Task .Command {
320
+ def testNegativeCompilation (): Command [Unit ] = Task .Command (exclusive = true ) {
329
321
val base = Task .workspace / " modules" / " build-macros" / " src"
330
322
val negativeTests = Seq (
331
323
" MismatchedLeft.scala" -> Seq (
You can’t perform that action at this time.
0 commit comments