Skip to content

Commit

Permalink
feat(typesense): Improve pipeline speed
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusa87 committed Dec 7, 2024
1 parent 89c8a70 commit f5a2192
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/symfony.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,17 @@ jobs:
typesense-version: ${{ matrix.typesense-version }}
typesense-api-key: xyz
- name: Curl Typesense
run: sleep 10 && curl http://localhost:8108/health

run: |
max_retries=10
attempt=0
until curl --silent --fail http://localhost:8108/health; do
attempt=$((attempt + 1))
if [ "$attempt" -ge "$max_retries" ]; then
echo "Typesense service did not respond after $max_retries attempts. Exiting."
exit 1
fi
sleep 1
done
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
Expand Down

0 comments on commit f5a2192

Please sign in to comment.