File tree 2 files changed +19
-1
lines changed
caddytest/spec/http/requestbody
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ jobs:
205
205
env :
206
206
CGO_ENABLED : 0
207
207
run : |
208
- go build -tags nobadger -trimpath -ldflags="-w -s" -v
208
+ go build -cover - tags nobadger,nopgx,nomysql -trimpath -ldflags="-w -s" -v
209
209
210
210
- name : Install Hurl
211
211
env :
@@ -217,6 +217,9 @@ jobs:
217
217
218
218
- name : Run Caddy
219
219
run : |
220
+ ./cmd/caddy/caddy environ
221
+ mkdir coverdir
222
+ export GOCOVERDIR=./coverdir
220
223
./cmd/caddy/caddy start
221
224
222
225
- name : Run tests with Hurl
@@ -230,6 +233,20 @@ jobs:
230
233
files : |
231
234
hurl-report/junit.xml
232
235
236
+ - name : Generate Coverage Data
237
+ run : |
238
+ ./cmd/caddy/caddy stop
239
+ go tool covdata textfmt -i=coverdir -o hurl-report/cover-profile.txt
240
+ go tool cover -html churl-report/cover-profile.txt -o hurl-report/cover.html
241
+
242
+
243
+ - name : Publish Coverage Profile
244
+ uses : actions/upload-artifact@v4
245
+ with :
246
+ name : caddy_cover_${{ steps.vars.outputs.short_sha }}.html
247
+ path : " ./hurl-report/cover.html"
248
+ compression-level : 0
249
+
233
250
s390x-test :
234
251
name : test (s390x on IBM Z)
235
252
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ http://localhost:8000 {
25
25
26
26
GET https://localhost:9443
27
27
[Options]
28
+ delay: 1s
28
29
insecure: true
29
30
```
30
31
Hello
You can’t perform that action at this time.
0 commit comments