diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c216a44..5d5f2e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,9 +62,15 @@ jobs: distribution: temurin java-version: 11 cache: sbt + - name: Test + shell: bash + if: startsWith(matrix.scala, '2.12.') + run: | + sbt test - name: Package shell: bash run: | + rm -rf target sbt package sbt makePom - name: Upload to maven diff --git a/build.sbt b/build.sbt index 37b4f42..4a96e0b 100644 --- a/build.sbt +++ b/build.sbt @@ -38,7 +38,8 @@ libraryDependencies ++= (if (scalaBinaryVersion.value == "2.12") Seq( "ch.cern.sparkmeasure" %% "spark-measure" % "0.18" % Test, "org.scalacheck" %% "scalacheck" % "1.15.2" % Test, "org.mockito" % "mockito-core" % "3.4.6" % Test, - "org.scalatestplus" %% "mockito-3-4" % "3.2.9.0" % Test + "org.scalatestplus" %% "mockito-3-4" % "3.2.9.0" % Test, + "com.github.sbt" % "junit-interface" % "0.13.3" % Test ) else Seq())