diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57d5fe5..660d925 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,6 +72,11 @@ jobs: - name: Check the test coverage is above the minimum criteria run: sbt +coverageReport + - name: Upload coverage data to Coveralls + run: sbt coverageAggregate coveralls + env: + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # https://www.scala-sbt.org/1.x/docs/GitHub-Actions-with-sbt.html#Caching - name: Clean files for caching run: | diff --git a/README.md b/README.md index d001210..d77fa27 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # lerna-app-library +[![Coverage Status](https://coveralls.io/repos/github/lerna-stack/lerna-app-library/badge.svg?branch=main)](https://coveralls.io/github/lerna-stack/lerna-app-library?branch=main) + A library that is useful for building applications that run on Lerna Stack. ## Modules diff --git a/project/plugins.sbt b/project/plugins.sbt index 00ef695..21ef204 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -8,6 +8,8 @@ addSbtPlugin("org.wartremover" % "sbt-wartremover-contrib" % "1.3.1") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.8.1") +addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.1") + // ScalaPB addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.2") libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.11.3"