diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6758b4a..d72316f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,8 +65,11 @@ jobs: report_paths: 'target/**test-reports/TEST-*.xml' github_token: ${{ secrets.GITHUB_TOKEN }} - - name: Check the test coverage is above the minimum criteria - run: sbt coverageAggregate + - name: Check the test coverage is above the minimum criteria and upload coveage data to Coveralls + run: sbt coverageAggregate coveralls + env: + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_FLAG_NAME: Java ${{ matrix.java }} # https://www.scala-sbt.org/1.x/docs/GitHub-Actions-with-sbt.html#Caching - name: Clean files for caching diff --git a/README.md b/README.md index 9a6724af..28bdd702 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ akka-entity-replication === [![CI](https://github.com/lerna-stack/akka-entity-replication/workflows/CI/badge.svg?branch=master)](https://github.com/lerna-stack/akka-entity-replication/actions?query=workflow%3ACI+branch%3Amaster) +[![Coverage Status](https://coveralls.io/repos/github/lerna-stack/akka-entity-replication/badge.svg)](https://coveralls.io/github/lerna-stack/akka-entity-replication) ## Introduction diff --git a/project/plugins.sbt b/project/plugins.sbt index 8e149320..621d853f 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -8,6 +8,8 @@ addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.25") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1") +addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.1") + addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1") addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3")