Skip to content

Commit

Permalink
ci: Check coverage value 👷
Browse files Browse the repository at this point in the history
  • Loading branch information
guisea committed Jul 31, 2024
1 parent 05600cb commit 520c8e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ jobs:
run: |
set -euo pipefail
go test -json -race -covermode=atomic -coverprofile=coverage.out ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
echo "COVERAGE=$(cat /tmp/gotest.log | sed -nr "s/.*coverage:.([0-9.]+).*/\1/p" | uniq)" >> $GITHUB_ENV
echo "Coverage is: ${{ env.COVERAGE }}%"
COVERAGE=$(cat /tmp/gotest.log | sed -nr "s/.*coverage:.([0-9.]+).*/\1/p" | uniq)
echo "COVERAGE=${COVERAGE}" >> $GITHUB_ENV
echo "Coverage is: ${COVERAGE}%"
- name: Update coverage badge
uses: cybercinch/dynamic-badges-action@master
Expand Down

0 comments on commit 520c8e1

Please sign in to comment.