fix(ci): install dependencies by cloning, not through GitHub's API
tests / pest (push) Failing after 6m59s Details
tests / assets (push) Successful in 20s Details
tests / release (push) Has been skipped Details

The dist path is rate-limited for anonymous callers, and a partial failure left
a half-installed vendor/ behind — the suite then failed with 500s that had
nothing to do with the code. Source clones need no quota. A GitHub token would
let us go back to the faster path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
feat/portal-design
nexxo 2026-07-26 02:11:52 +02:00
parent 7af3e2957b
commit 819872bb79
1 changed files with 6 additions and 6 deletions

View File

@ -27,12 +27,12 @@ jobs:
coverage: none
- name: Install PHP dependencies
# Dist downloads come from GitHub, which rate-limits anonymous callers —
# on a shared IP that is a coin flip. Falling back to source clones keeps
# CI self-sufficient instead of depending on someone else's quota.
run: |
composer install --no-interaction --prefer-dist --no-progress \
|| composer install --no-interaction --prefer-source --no-progress
# Source clones, not dist archives: dist downloads go through GitHub's
# API, which throttles anonymous callers and left a half-installed
# vendor/ behind — the tests then failed with 500s that had nothing to
# do with the code. Cloning is slower and does not need anyone's quota.
# Swap back to --prefer-dist once a GitHub token is configured.
run: composer install --no-interaction --prefer-source --no-progress
- name: Prepare environment
run: |