fix(ci): retry transient Playwright dependency downloads
This commit is contained in:
+10
-1
@@ -82,7 +82,16 @@ jobs:
|
||||
- run: uv run python manage.py bootstrap --username admin --organization CI
|
||||
env:
|
||||
BOOTSTRAP_PASSWORD: ${{ env.E2E_PASSWORD }}
|
||||
- run: npx playwright install --with-deps chromium
|
||||
- name: Install Playwright Chromium
|
||||
run: |
|
||||
for attempt in 1 2 3; do
|
||||
npx playwright install --with-deps chromium && exit 0
|
||||
if [ "$attempt" -lt 3 ]; then
|
||||
echo "::warning::Playwright 安装第 ${attempt} 次失败,15 秒后重试"
|
||||
sleep 15
|
||||
fi
|
||||
done
|
||||
exit 1
|
||||
- name: Browser regression
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user