Skip to content

Commit 1f1346f

Browse files
authored
ci: fail when getting an HTTP error (#581)
* Update ci.yml Allow curl check to fail if response code is greater than or equal to 400. * Update ci.yml * Update ci.yml
1 parent 9ac02d6 commit 1f1346f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ jobs:
4040
run: docker compose up --wait --no-build
4141
-
4242
name: Check HTTP reachability
43-
run: curl -v -o /dev/null http://localhost
43+
run: curl -v --fail-with-body http://localhost
4444
-
4545
name: Check HTTPS reachability
46-
run: curl -vk -o /dev/null https://localhost
46+
if: false # Remove this line when the homepage will be configured, or change the path to check
47+
run: curl -vk --fail-with-body https://localhost
4748
-
4849
name: Create test database
4950
if: false # Remove this line if Doctrine ORM is installed

0 commit comments

Comments
 (0)