feat: Enhance Playwright browser caching and CI/CD conditions

- Add Playwright browser caching to i18n-custom-nodes and i18n-node-defs workflows
- Update test-ui.yaml to allow running from feat/add-playwright-browser-caching* branches
- Remove sno-playwright-* from branches-ignore to enable CI for review branches
- Ensure consistent caching strategy across all Playwright workflows

This improves CI performance by avoiding repeated browser downloads and enables
testing from feature branches during development and review.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
snomiao
2025-08-31 05:55:33 +00:00
parent 33fa1ab028
commit 72e3d96327
3 changed files with 16 additions and 2 deletions

View File

@@ -78,6 +78,13 @@ jobs:
python main.py --cpu --multi-user &
wait-for-it --service 127.0.0.1:8188 -t 600
working-directory: ComfyUI
- name: Cache Playwright browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-browsers-${{ runner.os }}-${{ hashFiles('ComfyUI_frontend/pnpm-lock.yaml') }}
restore-keys: |
playwright-browsers-${{ runner.os }}-
- name: Install Playwright Browsers
run: npx playwright install chromium --with-deps
working-directory: ComfyUI_frontend

View File

@@ -14,6 +14,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: Comfy-Org/ComfyUI_frontend_setup_action@v3
- name: Cache Playwright browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-browsers-${{ runner.os }}-${{ hashFiles('ComfyUI_frontend/pnpm-lock.yaml') }}
restore-keys: |
playwright-browsers-${{ runner.os }}-
- name: Install Playwright Browsers
run: npx playwright install chromium --with-deps
working-directory: ComfyUI_frontend

View File

@@ -2,10 +2,10 @@ name: Tests CI
on:
push:
branches: [main, master, core/*, desktop/*]
branches: [main, master, core/*, desktop/*, feat/add-playwright-browser-caching*]
pull_request:
branches-ignore:
[wip/*, draft/*, temp/*, vue-nodes-migration, sno-playwright-*]
[wip/*, draft/*, temp/*, vue-nodes-migration]
jobs:
setup: