diff --git a/.github/workflows/short-tests.yml b/.github/workflows/short-tests.yml index b2771e0..ac05d2c 100644 --- a/.github/workflows/short-tests.yml +++ b/.github/workflows/short-tests.yml @@ -25,4 +25,9 @@ jobs: name: coverage-report_build_${{ github.run_number }} path: ${{ github.workspace }}/src/cover.out retention-days: 1 - + - name: Generate coverage badge + run: | + go install github.com/t-yuki/gocover-cobertura@latest + gocover-cobertura < cover.out > coverage.xml + go install github.com/boumenot/gocover-cobertura@latest + gocover-cobertura -coverprofile=cover.out -o coverage.svg