Skip to content

Commit a455087

Browse files
committed
Enable tests if scala version 2.12.
Signed-off-by: Pascal Spörri <psp@zurich.ibm.com>
1 parent 2ec4122 commit a455087

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,15 @@ jobs:
6262
distribution: temurin
6363
java-version: 11
6464
cache: sbt
65+
- name: Test
66+
shell: bash
67+
if: startsWith(matrix.scala, '2.12.')
68+
run: |
69+
sbt test
6570
- name: Package
6671
shell: bash
6772
run: |
73+
rm -rf target
6874
sbt package
6975
sbt makePom
7076
- name: Upload to maven

build.sbt

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ libraryDependencies ++= (if (scalaBinaryVersion.value == "2.12") Seq(
3838
"ch.cern.sparkmeasure" %% "spark-measure" % "0.18" % Test,
3939
"org.scalacheck" %% "scalacheck" % "1.15.2" % Test,
4040
"org.mockito" % "mockito-core" % "3.4.6" % Test,
41-
"org.scalatestplus" %% "mockito-3-4" % "3.2.9.0" % Test
41+
"org.scalatestplus" %% "mockito-3-4" % "3.2.9.0" % Test,
42+
"com.github.sbt" % "junit-interface" % "0.13.3" % Test
4243
)
4344
else Seq())
4445

0 commit comments

Comments
 (0)