Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
Allow curl check to fail if response code is greater than or equal to 400.
  • Loading branch information
mano-lis committed Mar 6, 2024
1 parent 97b78c8 commit 21184eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
run: docker compose up --wait --no-build
-
name: Check HTTP reachability
run: curl -v -o /dev/null http://localhost
run: curl -v -o --fail-with-body /dev/null http://localhost
-
name: Check API reachability
run: curl -vk -o /dev/null https://localhost
run: curl -vk -o --fail-with-body /dev/null https://localhost
-
name: Check PWA reachability
run: "curl -vk -o /dev/null -H 'Accept: text/html' https://localhost"
run: "curl -vk -o --fail-with-body /dev/null -H 'Accept: text/html' https://localhost"
-
name: Create test database
run: docker compose exec -T php bin/console -e test doctrine:database:create
Expand Down

0 comments on commit 21184eb

Please sign in to comment.