From 63e91c80fdd46a10d07d7a0dbb4855a76492d71c Mon Sep 17 00:00:00 2001 From: iasergunin Date: Sat, 9 Dec 2023 07:28:11 +0300 Subject: [PATCH] 1. Fixed coverage db --- .github/workflows/main.yaml | 8 +++----- sh/go.test.coverage.sh | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index a04f342..51c5d9d 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -117,14 +117,12 @@ jobs: set -x COVERAGE_TOTAL=`go tool covdata func -i=./coverage | grep total | grep -Eo '[0-9]+\.[0-9]+'` echo "COVERAGE_TOTAL=$COVERAGE_TOTAL" >> $GITHUB_ENV - - uses: jandelgado/gcov2lcov-action@v1.0.9 - with: - outfile: ./coverage.lcov - name: Coveralls - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@v2 with: - path-to-lcov: ./coverage.lcov + format: golang + file: ./coverage.out github-token: ${{ secrets.GITHUB_TOKEN }} golangci: diff --git a/sh/go.test.coverage.sh b/sh/go.test.coverage.sh index 53b75cb..d48284b 100755 --- a/sh/go.test.coverage.sh +++ b/sh/go.test.coverage.sh @@ -11,4 +11,4 @@ mkdir -p $ROOT/coverage ./go.test.sh $COVERAGE_TEST "$@" -go tool covdata textfmt -i="$ROOT/coverage" -o "$ROOT/coverage.out" +go tool covdata textfmt -i="$ROOT/coverage" -o "$ROOT/coverage.out" \ No newline at end of file