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 e75fca0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,14 @@ 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: hurl-report/caddy_cover_${{ steps.vars.outputs.short_sha }}.*
compression-level: 0

s390x-test:
Expand Down

0 comments on commit e75fca0

Please sign in to comment.