From 20a26f7a6fa91d8dfa87ea257e10b6c5ef0c2dfb Mon Sep 17 00:00:00 2001 From: Matthew Rich Date: Sat, 23 Mar 2024 17:08:42 -0700 Subject: [PATCH] debug generate coverage report --- .gitea/workflows/test.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 542154c..3404aeb 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -30,12 +30,9 @@ jobs: - name: Run tests run: | go test -coverprofile=artifacts/coverage.profile ./... - - name: debug coverage report - run: | - echo $GITHUB_STEP_SUMMARY - cat artifacts/coverage.profile - run: echo "This job's status is ${{ job.status }}." - name: coverage report run: | - cat artifacts/coverage.profile >> $GITHUB_STEP_SUMMARY + go tool cover -html=artifacts/coverage.profile -o artifacts/coverage.html + cat artifacts/coverage.html >> $GITHUB_STEP_SUMMARY - run: echo "This job's status is ${{ job.status }}."