From 8cbbeef86d057cf8331f7dbb65803e567017e11c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Spo=CC=88rri?= Date: Thu, 31 Aug 2023 15:02:38 +0200 Subject: [PATCH] Enable tests if scala version 2.12. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pascal SpoĢˆrri --- .github/workflows/ci.yml | 6 ++++++ build.sbt | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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())