Skip to content

Commit

Permalink
include txt and html coverage profile
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammed90 authored Oct 31, 2024
1 parent 25d94ff commit 0d9f7b3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0d9f7b3

Please sign in to comment.