1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00

include txt and html coverage profile

This commit is contained in:
Mohammed Al Sahaf 2024-10-31 07:23:43 +00:00 committed by GitHub
parent 25d94ffe2a
commit e75fca007e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: