Skip to content

Commit

Permalink
Tweak coverage lowered error to trigger two percent higher
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Feb 2, 2025
1 parent e040303 commit 2eed6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ 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 < 60" | bc) )); then echo "Test coverage lowered"; exit 1; fi
if (( $(echo "$coverage < 62" | bc) )); then echo "Test coverage lowered"; exit 1; fi
- name: Update PR Coverage
uses: shogo82148/actions-goveralls@v1
Expand Down

0 comments on commit 2eed6b1

Please sign in to comment.