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 +