mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
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:
7
.github/workflows/i18n-custom-nodes.yaml
vendored
7
.github/workflows/i18n-custom-nodes.yaml
vendored
@@ -78,6 +78,13 @@ jobs:
|
|||||||
python main.py --cpu --multi-user &
|
python main.py --cpu --multi-user &
|
||||||
wait-for-it --service 127.0.0.1:8188 -t 600
|
wait-for-it --service 127.0.0.1:8188 -t 600
|
||||||
working-directory: ComfyUI
|
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
|
- name: Install Playwright Browsers
|
||||||
run: npx playwright install chromium --with-deps
|
run: npx playwright install chromium --with-deps
|
||||||
working-directory: ComfyUI_frontend
|
working-directory: ComfyUI_frontend
|
||||||
|
|||||||
7
.github/workflows/i18n-node-defs.yaml
vendored
7
.github/workflows/i18n-node-defs.yaml
vendored
@@ -14,6 +14,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: Comfy-Org/ComfyUI_frontend_setup_action@v3
|
- 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
|
- name: Install Playwright Browsers
|
||||||
run: npx playwright install chromium --with-deps
|
run: npx playwright install chromium --with-deps
|
||||||
working-directory: ComfyUI_frontend
|
working-directory: ComfyUI_frontend
|
||||||
|
|||||||
4
.github/workflows/test-ui.yaml
vendored
4
.github/workflows/test-ui.yaml
vendored
@@ -2,10 +2,10 @@ name: Tests CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, master, core/*, desktop/*]
|
branches: [main, master, core/*, desktop/*, feat/add-playwright-browser-caching*]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches-ignore:
|
branches-ignore:
|
||||||
[wip/*, draft/*, temp/*, vue-nodes-migration, sno-playwright-*]
|
[wip/*, draft/*, temp/*, vue-nodes-migration]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
setup:
|
||||||
|
|||||||
Reference in New Issue
Block a user