From 6931fe920fa042507e73c89dd653ede052394aa1 Mon Sep 17 00:00:00 2001 From: Dennis Ploeger Date: Fri, 22 Dec 2023 08:58:29 +0100 Subject: [PATCH] feat: Coverage report --- .github/workflows/test.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4744018..5d34d0b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,4 +15,12 @@ jobs: go-version: '1.21' - name: Test - run: go test ./... -cover \ No newline at end of file + run: | + go test ./... -coverprofile cover.out + go tool cover -html=cover.out -o=cover.html + + - name: Archive code coverage results + uses: actions/upload-artifact@v3 + with: + name: code-coverage-report + path: cover.html \ No newline at end of file