diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index e6bdde5..40c92e0 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -22,7 +22,14 @@ jobs: restore-keys: composer- - name: Install dependencies - run: composer install --no-interaction --prefer-dist + run: | + for attempt in 1 2 3 4 5; do + echo "composer install attempt $attempt/5" + composer install --no-interaction --prefer-dist && exit 0 + echo "composer install failed (attempt $attempt/5), retrying in 30s..." + sleep 30 + done + exit 1 - name: Prepare environment run: cp .env.testing .env