From 7b870846e123a5688f765e150b361489e81230c4 Mon Sep 17 00:00:00 2001 From: Yutaro Hayakawa Date: Sun, 26 May 2024 15:29:46 +0900 Subject: [PATCH] Add missing coverage report generation Signed-off-by: Yutaro Hayakawa --- .github/workflows/tests.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index e57509a..21de53f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -19,7 +19,9 @@ jobs: go-version-file: ./go.mod - name: Run tests - run: go test -v -exec "sudo" -coverpkg=./... -coverprofile=coverage.out ./... + run: | + go test -v -exec "sudo" -coverpkg=./... -coverprofile=coverage.out ./... + go tool cover -html=coverage.out -o coverage.html - name: Upload coverage report uses: actions/upload-artifact@v4