Skip to content

Commit 3df6353

Browse files
committed
ci: Test the new HelloWorldWithResources example
1 parent eb528e3 commit 3df6353

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/endtoend_tests.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
example:
2222
- Examples/HelloWorldVapor
2323
- Examples/HelloWorldHummingbird
24+
- Examples/HelloWorldWithResources
2425
steps:
2526
- name: Checkout repository
2627
uses: actions/checkout@v4
@@ -55,4 +56,14 @@ jobs:
5556
5657
- name: Check that the service is running
5758
run: |
58-
curl -v localhost:8080 | grep "Hello World"
59+
# The curious combination of --verbose and --silent causes
60+
# curl to print the request and response (--verbose) but not
61+
# the transmission progress messages (--silent).
62+
#
63+
# --fail-with-body causes curl to exit with a nonzero exit code
64+
# if the HTTP response code is >= 400. Without this flag, curl
65+
# only returns a nonzero exit code if something went wrong while
66+
# connecting to the server - a successful HTTP transaction which
67+
# indicates a server error is still considered to be a successful
68+
# transaction.
69+
curl --verbose --silent --output /dev/null --fail-with-body localhost:8080
Binary file not shown.

0 commit comments

Comments
 (0)