Skip to content

Commit

Permalink
Lower limit for test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Dec 31, 2023
1 parent dbe9c7c commit 40f1d3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
set -e
xvfb-run go test -covermode=atomic -coverprofile=coverage.out ./...
coverage=`go tool cover -func coverage.out | grep total | tr -s '\t' | cut -f 3 | grep -o '[^%]*'`
if (( $(echo "$coverage < 63" | bc) )); then echo "Test coverage lowered"; exit 1; fi
if (( $(echo "$coverage < 48" | bc) )); then echo "Test coverage lowered"; exit 1; fi
- name: Update PR Coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out
path-to-profile: coverage.out

0 comments on commit 40f1d3b

Please sign in to comment.