CI: composer-cache en herhaalpogingen in alle jobs

This commit is contained in:
Matthijs Iriks committed 2026-12-04 02:20:25 +01:00
1 parent 2539dfcc3e
commit b863f9a346
4 files changed
+62 -8

No files matched your search

+17 -1
View File
@@ -19,8 +19,24 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: cache composer downloads
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: composer-release-${{ hashFiles('composer.json') }}
restore-keys: |
composer-release-
- name: install dependencies
run: composer update --prefer-stable --prefer-dist
env:
COMPOSER_MAX_PARALLEL_HTTP: '4'
run: |
for attempt in 1 2 3; do
composer update --prefer-stable --prefer-dist && exit 0
echo "composer failed (attempt $attempt of 3), trying again" >&2
sleep $((attempt * 10))
done
exit 1
- name: pest tests
run: vendor/bin/pest