Skip to content

Commit

Permalink
Only run coverage once
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jan 3, 2025
1 parent 5f890ff commit 6d2a00b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/platform_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
set -e
go test -tags ci -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 < 23" | bc) )); then echo "Test coverage lowered"; exit 1; fi
if: ${{ runner.os == 'Linux' }}
if (( $(echo "$coverage < 22" | bc) )); then echo "Test coverage lowered"; exit 1; fi
if: ${{ matrix.os == 'ubuntu-latest' }} && ${{ matrix.go-version == '1.21' }}

- name: Update PR Coverage
uses: shogo82148/actions-goveralls@v1
Expand Down

0 comments on commit 6d2a00b

Please sign in to comment.