Skip to content

Commit 5dcd305

Browse files
committed
👷chore: Upload coverage data to Coveralls with CI
1 parent 2aaa844 commit 5dcd305

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ jobs:
6060
report_paths: 'target/**test-reports/TEST-*.xml'
6161
github_token: ${{ secrets.GITHUB_TOKEN }}
6262

63-
- name: Check the test coverage is above the minimum criteria
64-
run: sbt coverageAggregate
63+
- name: Check the test coverage is above the minimum criteria and upload coveage data to Coveralls
64+
run: sbt coverageAggregate coveralls
65+
env:
66+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6567

6668
# https://www.scala-sbt.org/1.x/docs/GitHub-Actions-with-sbt.html#Caching
6769
- name: Clean files for caching

project/plugins.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.25")
88

99
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.8.2")
1010

11+
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.1")
12+
1113
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")
1214

1315
addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3")

0 commit comments

Comments
 (0)