From 843c312f57d9359a635d50c867682a5432a13f25 Mon Sep 17 00:00:00 2001 From: Vincent Mercier Date: Fri, 22 Sep 2023 19:39:55 +0200 Subject: [PATCH] add-coverage-report --- .github/workflows/test.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index abd5a70..0d0ce9f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -23,6 +23,24 @@ jobs: run: make build - name: Run Go tests run: make test + - name: Code Coverage Report + uses: irongut/CodeCoverageSummary@v1.3.0 + with: + filename: coverage.xml + badge: true + fail_below_min: true + format: markdown + hide_branch_rate: false + hide_complexity: true + indicators: true + output: both + thresholds: '60 80' + - name: Add Coverage PR Comment + uses: marocchino/sticky-pull-request-comment@v2 + if: github.event_name == 'pull_request' + with: + recreate: true + path: code-coverage-results.md helm: name: helm runs-on: ubuntu-latest