From da20644027decfd915176a6d2c5d8cd5736a5537 Mon Sep 17 00:00:00 2001 From: Kazuki Negoro Date: Thu, 25 Nov 2021 17:01:39 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=91=B7chore:=20Upload=20coverage=20da?= =?UTF-8?q?ta=20to=20Coveralls=20with=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 6 ++++-- project/plugins.sbt | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6758b4a..d85b0631 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,8 +65,10 @@ 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 }} # https://www.scala-sbt.org/1.x/docs/GitHub-Actions-with-sbt.html#Caching - name: Clean files for caching 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") From 0df4ca6c415135239c243a14eeedf2fd71edf925 Mon Sep 17 00:00:00 2001 From: Kazuki Negoro Date: Thu, 25 Nov 2021 17:17:18 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9Adoc:=20Add=20a=20badge=20that?= =?UTF-8?q?=20notices=20coverage=20status?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + 1 file changed, 1 insertion(+) 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 From a861f88bc348197a916c6ed16c3920e91981d149 Mon Sep 17 00:00:00 2001 From: Kazuki Negoro Date: Thu, 31 Mar 2022 17:35:01 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=91=B7chore:=20Add=20COVERALLS=5FFLAG?= =?UTF-8?q?=5FNAME?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d85b0631..d72316f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,6 +69,7 @@ jobs: 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