From 0f0cce06d030cd3b3f5e8870cc60b4b5b049f07e Mon Sep 17 00:00:00 2001 From: David Geirola Date: Tue, 17 Jan 2023 16:17:54 +0100 Subject: [PATCH] Add scoverage --- .github/workflows/cicd.yml | 4 ++-- build.sbt | 5 +++-- project/plugins.sbt | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 1fd752d..96af204 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -30,10 +30,10 @@ jobs: include: - scala: 2.13.10 name: Scala2_13 - test-tasks: test + test-tasks: coverage test coverageReport gen-doc - scala: 3.2.1 name: Scala3_2 - test-tasks: test + test-tasks: coverage test coverageReport steps: - uses: actions/checkout@v3 diff --git a/build.sbt b/build.sbt index 2df5720..5d86b62 100644 --- a/build.sbt +++ b/build.sbt @@ -223,5 +223,6 @@ def scalacSettings(scalaVersion: String): Seq[String] = } //=============================== ALIASES =============================== -addCommandAlias("check", ";clean;test") -addCommandAlias("generate-docs", "mdoc;copyReadMe;") +addCommandAlias("check", "scalafmtAll;clean;coverage;test;coverageAggregate") +addCommandAlias("gen-doc", "mdoc;copyReadMe;") +addCommandAlias("coverage-test", "coverage;test;coverageReport") diff --git a/project/plugins.sbt b/project/plugins.sbt index 9c5d00c..d873ea7 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,7 +1,7 @@ import sbt.addSbtPlugin addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") -//addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.6") +addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.6") addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10") addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.3") addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")