From 604980fa0e6b5d55fcd2344e4c2487555f8480cc Mon Sep 17 00:00:00 2001 From: Barry O'Neill Date: Tue, 26 Nov 2024 14:32:49 -0500 Subject: [PATCH] enable coverage in sbt --- .github/workflows/build.yaml | 2 +- build.sbt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 78eac70..4af5711 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -27,6 +27,6 @@ jobs: $HOME/.sbt key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} - name: Build - run: sbt ";build; coverageReport" + run: sbt build - name: Upload To Codecov uses: codecov/codecov-action@v5 diff --git a/build.sbt b/build.sbt index 9a54389..215f6a0 100644 --- a/build.sbt +++ b/build.sbt @@ -3,11 +3,13 @@ import laserdisc.sbt.LaserDiscDevelopers ThisBuild / laserdiscCompileTarget := Scala2And3 ThisBuild / laserdiscRepoName := "console4s" +ThisBuild / coverageEnabled := true val root = (project in file(".")) .settings( name := "console4s", developers := List(LaserDiscDevelopers.Barry), - Dependencies.Testing + Dependencies.Testing, + ) .enablePlugins(LaserDiscDefaultsPlugin)