Skip to content

Commit

Permalink
1. Fixing coverage db
Browse files Browse the repository at this point in the history
  • Loading branch information
iasergunin committed Dec 9, 2023
1 parent 3e4301d commit 136d388
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
# - '1.10' doesn't have go module
# - 1.11
# - 1.12 doesn't have errors pkg
- '1.13'
- '1.14'
- '1.15'
- '1.16'
- '1.17'
- '1.18'
- '1.19'
- '1.20'
# - '1.13'
# - '1.14'
# - '1.15'
# - '1.16'
# - '1.17'
# - '1.18'
# - '1.19'
# - '1.20'
os:
- ubuntu-latest
# - macos-latest
Expand Down Expand Up @@ -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
with:
path-to-lcov: ./coverage.lcov
format: golang
file: ./coverage.out
github-token: ${{ secrets.GITHUB_TOKEN }}

golangci:
Expand Down
2 changes: 1 addition & 1 deletion sh/go.test.coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 136d388

Please sign in to comment.