Commit dcca7e4
ci(examples): assert exact status/body instead of liveness-only check (#755)
* ci(examples): assert exact status/body instead of liveness-only check
The verify step in test-image/test-zip/test-stream treated any 2xx-4xx
response as success, so a broken route (404) or an app that booted but
served the wrong/empty content still passed.
Add .github/scripts/verify-http.sh which waits for an endpoint to return
an exact status code and (optionally) a known body substring, and convert
each job's matrix to objects carrying {path, expect_status, expect_body}
so every example asserts its real response.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(examples): honor PORT in fasthtml-response-streaming
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent c7f2899 commit dcca7e4
6 files changed
Lines changed: 187 additions & 136 deletions
File tree
- .github
- scripts
- workflows
- examples
- expressjs-zip
- expressjs
- app
- fasthtml-response-streaming/app
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
0 commit comments