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
@@ -18,8 +18,24 @@ jobs:
with:
ref: production
- name: cache composer downloads
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: composer-scheduled-${{ hashFiles('composer.json') }}
restore-keys: |
composer-scheduled-
- name: install dependencies
run: composer update --prefer-stable --prefer-dist --no-scripts
env:
COMPOSER_MAX_PARALLEL_HTTP: '4'
run: |
for attempt in 1 2 3; do
composer update --prefer-stable --prefer-dist --no-scripts && exit 0
echo "composer failed (attempt $attempt of 3), trying again" >&2
sleep $((attempt * 10))
done
exit 1
- name: composer audit
run: composer audit