From d346944e206564942e6b352f7d2406a939e9fe87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 5 Dec 2023 22:11:09 +0100 Subject: [PATCH] Publish coverage report --- .gitea/workflows/go-test.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/go-test.yml b/.gitea/workflows/go-test.yml index 6230546..be8571f 100644 --- a/.gitea/workflows/go-test.yml +++ b/.gitea/workflows/go-test.yml @@ -51,4 +51,14 @@ jobs: run: go build -v ./... - name: Test - run: go test -cover -v ./... + run: go test -cover -coverprofile=/tmp/cov.out -v ./... + + - name: Make coverage report + run: go tool cover -html=/tmp/cov.out -o /tmp/cov.html + + - name: Publish coverage report + uses: actions/upload-artifact@v3 + with: + name: coverage-report + path: /tmp/cov.html +