Skip to content

Commit

Permalink
use curl
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Jul 1, 2023
1 parent b220490 commit d183da3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ jobs:
- name: Check container status
run: docker ps

- uses: iFaxity/wait-on-action@v1
with:
resource: tcp://localhost:8000
timeout: 10000
- name: Wait for server to be ready
run: |
while ! curl -s http://localhost:8000 > /dev/null; do
echo "Waiting for server..."
sleep 1
done
shell: bash

- name: Run tests
run: vendor/bin/phpunit

0 comments on commit d183da3

Please sign in to comment.