From 520c8e18b714128729f25194011ab49554315c11 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Thu, 1 Aug 2024 11:23:00 +1200 Subject: [PATCH] =?UTF-8?q?ci:=20Check=20coverage=20value=20=F0=9F=91=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00ea8ae..e5c6a88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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