mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-25 09:14:25 +00:00
[feat] Add comprehensive caching to CI/CD workflows
- Add ESLint cache (.eslintcache) to auto-fix and fork PR workflows - Add npm cache to all Node.js setup steps across workflows - Add Vite build cache (node_modules/.vite) to improve build performance - Add Playwright browser cache with version-specific keys - Optimize test-ui, vitest, release, and auto-fix workflows 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
9
.github/workflows/vitest.yaml
vendored
9
.github/workflows/vitest.yaml
vendored
@@ -17,10 +17,19 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Cache Vite
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: node_modules/.vite
|
||||
key: ${{ runner.os }}-vite-${{ hashFiles('package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-vite-
|
||||
|
||||
- name: Run Vitest tests
|
||||
run: |
|
||||
npm run test:component
|
||||
|
||||
Reference in New Issue
Block a user