From d99f9c23ed08212a029fd2f6ded01d29203be578 Mon Sep 17 00:00:00 2001 From: Yann Moisan Date: Wed, 17 Jul 2024 23:39:14 +0200 Subject: [PATCH] configure coverage --- .github/workflows/build.yml | 8 +++++++- README.md | 1 + project/plugins.sbt | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 42b1c74..d464792 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,13 @@ jobs: with: java-version: 1.8 - name: Run tests - run: sbt +test + run: sbt coverage +test + - name: Coverage report + run: sbt coverageReport + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} lint: runs-on: ubuntu-latest diff --git a/README.md b/README.md index 5698830..37b0499 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ ![Build status](https://github.com/YannMoisan/graphite4s/actions/workflows/build.yml/badge.svg) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.yannmoisan/graphite4s_2.12/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.yannmoisan/graphite4s_2.12) +[![codecov](https://codecov.io/github/YannMoisan/graphite4s/graph/badge.svg?token=37WNLGADEH)](https://codecov.io/github/YannMoisan/graphite4s) [![License](https://img.shields.io/github/license/yannmoisan/graphite4s)](http://www.apache.org/licenses/LICENSE-2.0.html) A library for sending points to graphite. diff --git a/project/plugins.sbt b/project/plugins.sbt index cd866cd..5c790f5 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -2,4 +2,6 @@ addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.4.2") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0") +addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.10") + addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.11")