From 1f1346f9788a8288c58bdd4672e5fdb0b3448c42 Mon Sep 17 00:00:00 2001 From: Emmanuel Barat Date: Wed, 6 Mar 2024 13:44:55 +0100 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 546c8f2..7d950ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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