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
This commit is contained in:
Emmanuel Barat 2024-03-06 13:44:55 +01:00 committed by GitHub
parent 9ac02d639c
commit 1f1346f978
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,10 +40,11 @@ jobs:
run: docker compose up --wait --no-build
-
name: Check HTTP reachability
run: curl -v -o /dev/null http://localhost
run: curl -v --fail-with-body http://localhost
-
name: Check HTTPS reachability
run: curl -vk -o /dev/null https://localhost
if: false # Remove this line when the homepage will be configured, or change the path to check
run: curl -vk --fail-with-body https://localhost
-
name: Create test database
if: false # Remove this line if Doctrine ORM is installed