From d95a937b842deb33c44706403a2ec253310e392f Mon Sep 17 00:00:00 2001 From: andreaangiolillo Date: Mon, 25 Sep 2023 13:59:45 +0100 Subject: [PATCH] Update code-health.yml --- .github/workflows/code-health.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-health.yml b/.github/workflows/code-health.yml index d791da418c..05fa838bcb 100644 --- a/.github/workflows/code-health.yml +++ b/.github/workflows/code-health.yml @@ -34,8 +34,17 @@ jobs: go-version-file: 'go.mod' - name: Unit Test run: make test - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + - name: Convert coverage report to Cobertura format + run: | + go get github.com/axw/gocov/gocov + go get github.com/AlekSi/gocov-xml + gocov convert coverage.out | gocov-xml > coverage.xml + - name: Code Coverage Summary Report + uses: irongut/CodeCoverageSummary@v1.3.0 + with: + filename: coverage.xml + format: markdown + badge: true lint: runs-on: ubuntu-latest steps: