From 6a6781aaafb2c482a75315280ac062322e57e2c9 Mon Sep 17 00:00:00 2001 From: Janos Bonic <86970079+janosdebugs@users.noreply.github.com> Date: Tue, 13 Sep 2022 20:05:37 +0200 Subject: [PATCH] Fixed coverage reporting --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cb4fc96..7aa3225 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: echo "# Code coverage summary" > /tmp/coverage.md echo "|File|Package|Coverage|" >> /tmp/coverage.md echo "|----|-------|--------|" >> /tmp/coverage.md - go tool cover -func coverage.out | sed -e 's/\s\s*/|/g' -e 's/^/|/g' -e 's/$/|/g' >> /tmp/coverage.md + go tool cover -func /tmp/coverage.out | sed -e 's/\s\s*/|/g' -e 's/^/|/g' -e 's/$/|/g' >> /tmp/coverage.md cat /tmp/coverage.md cat /tmp/coverage.md >> $GITHUB_STEP_SUMMARY - name: Upload test log