Skip to content

Commit

Permalink
Add code coverage minimum expectations & capture coverage report
Browse files Browse the repository at this point in the history
Signed-off-by: reidspencer <reid.spencer@yoppworks.com>
  • Loading branch information
reid-spencer committed Oct 3, 2023
1 parent 078ca57 commit e6a0001
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }}

- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: target/scala-2.12/scoverage-report

- name: Cleanup Before Caching
shell: bash
run: |
Expand Down
14 changes: 7 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ lazy val utils = project
.in(file("utils"))
.configure(C.mavenPublish)
.configure(C.withScala3)
.configure(C.withCoverage(0))
.configure(C.withCoverage(70))
.enablePlugins(BuildInfoPlugin)
.configure(
C.withBuildInfo("https://riddl.tech", "Ossum Inc.", "com.reactific.riddl.utils", "RiddlBuildInfo", 2019))
Expand All @@ -61,7 +61,7 @@ lazy val utils = project
val Language: Configuration = config("language")
lazy val language: Project = project
.in(file("language"))
.configure(C.withCoverage(0))
.configure(C.withCoverage(65))
.configure(C.mavenPublish)
.configure(C.withScala3)
.settings(
Expand All @@ -74,7 +74,7 @@ lazy val language: Project = project
val Passes = config("passes")
lazy val passes = project
.in(file("passes"))
.configure(C.withCoverage(0))
.configure(C.withCoverage(30))
.configure(C.mavenPublish)
.configure(C.withScala3)
.settings(
Expand All @@ -89,7 +89,7 @@ val Commands = config("commands")
lazy val commands: Project = project
.in(file("commands"))
.configure(C.withScala3)
.configure(C.withCoverage(0))
.configure(C.withCoverage(50))
.configure(C.mavenPublish)
.settings(
name := "riddl-commands",
Expand All @@ -112,7 +112,7 @@ lazy val testkit: Project = project
val StatsTrans = config("stats")
lazy val stats: Project = project
.in(file("stats"))
.configure(C.withCoverage(0))
.configure(C.withCoverage(50))
.configure(C.withScala3)
.configure(C.mavenPublish)
.settings(name := "riddl-stats", libraryDependencies ++= Seq(Dep.pureconfig) ++ Dep.testing)
Expand All @@ -121,7 +121,7 @@ lazy val stats: Project = project
val Prettify = config("prettify")
lazy val prettify = project
.in(file("prettify"))
.configure(C.withCoverage(0))
.configure(C.withCoverage(65))
.configure(C.withScala3)
.configure(C.mavenPublish)
.settings(name := "riddl-prettify", libraryDependencies ++= Dep.testing)
Expand All @@ -131,7 +131,7 @@ lazy val prettify = project
val HugoTrans = config("hugo")
lazy val hugo: Project = project
.in(file("hugo"))
.configure(C.withCoverage(0))
.configure(C.withCoverage(50))
.configure(C.withScala3)
.configure(C.mavenPublish)
.settings(
Expand Down

0 comments on commit e6a0001

Please sign in to comment.