[feat] Add comprehensive caching to CICD workflows

- Add npm cache to vitest, release, and dev-release workflows
- Add pip cache for Python dependencies in test-ui workflow
- Add Playwright browser caching to reduce installation time
- Optimize browser installation with conditional steps based on cache hits

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
snomiao
2025-08-14 14:37:02 +00:00
parent e5d4d07d32
commit 4a8067c45e
5 changed files with 10 additions and 10 deletions

View File

@@ -19,11 +19,12 @@ jobs:
restore-keys: |
playwright-browsers-${{ runner.os }}-
- name: Install Playwright Browsers
run: npx playwright install chromium --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: pnpx playwright install chromium --with-deps
working-directory: ComfyUI_frontend
- name: Run Playwright tests and update snapshots
id: playwright-tests
run: npx playwright test --update-snapshots
run: pnpx playwright test --update-snapshots
continue-on-error: true
working-directory: ComfyUI_frontend
- uses: actions/upload-artifact@v4