From 0d9f7b34dfbd84e38f576d204f20617f5bd650d7 Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Thu, 31 Oct 2024 07:23:43 +0000 Subject: [PATCH] include txt and html coverage profile --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9487da36c5c..2fe9df51f06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -237,15 +237,16 @@ jobs: run: | export GOCOVERDIR=./coverdir ./cmd/caddy/caddy stop - go tool covdata textfmt -i=coverdir -o hurl-report/cover-profile.txt - go tool cover -html hurl-report/cover-profile.txt -o hurl-report/cover.html + go tool covdata textfmt -i=coverdir -o hurl-report/caddy_cover_${{ steps.vars.outputs.short_sha }}.txt + go tool cover -html hurl-report/caddy_cover_${{ steps.vars.outputs.short_sha }}.txt -o hurl-report/caddy_cover_${{ steps.vars.outputs.short_sha }}.html - name: Publish Coverage Profile uses: actions/upload-artifact@v4 with: - name: caddy_cover_${{ steps.vars.outputs.short_sha }}.html - path: "./hurl-report/cover.html" + path: | + caddy_cover_${{ steps.vars.outputs.short_sha }}.txt + caddy_cover_${{ steps.vars.outputs.short_sha }}.html compression-level: 0 s390x-test: