From fe6a17e148124e38b0febab5ce08922c9479511a Mon Sep 17 00:00:00 2001 From: Rajil Bajracharya Date: Fri, 1 Sep 2023 18:39:28 +0545 Subject: [PATCH] ci: create coverage badge --- .github/workflows/go.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d99186a..22e5f98 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -37,4 +37,15 @@ jobs: with: # Configure action by specifying input parameters individually (option 2) profile: cover.out - threshold-total: 95 \ No newline at end of file + threshold-total: 95 + + - name: make coverage badge + uses: action-badges/core@0.2.2 + # if: contains(github.ref, 'main') + with: + label: coverage + message: ${{ steps.coverage.outputs.badge-text }} + message-color: ${{ steps.coverage.outputs.badge-color }} + file-name: coverage.svg + badge-branch: badges ## orphan branch where badge will be committed + github-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file