[test] Baseline test: Re-add .cache to measure performance WITH cache

This commit temporarily restores .cache caching to establish a baseline
for performance comparison. The next commit will remove it again to
measure the performance impact.

Testing approach:
1. This commit: WITH .cache (baseline)
2. Next commit: WITHOUT .cache (comparison)
3. Analysis: Compare CI run times to quantify cache impact
This commit is contained in:
snomiao
2025-10-19 03:01:29 +00:00
parent fb9694ff7e
commit 24db1fcda2
8 changed files with 9 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ jobs:
uses: actions/cache@v4
with:
path: |
.cache
tsconfig.tsbuildinfo
key: electron-types-tools-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |

View File

@@ -35,6 +35,7 @@ jobs:
uses: actions/cache@v4
with:
path: |
.cache
tsconfig.tsbuildinfo
key: update-manager-tools-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |

View File

@@ -34,6 +34,7 @@ jobs:
uses: actions/cache@v4
with:
path: |
.cache
tsconfig.tsbuildinfo
key: update-registry-tools-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |

View File

@@ -37,6 +37,7 @@ jobs:
uses: actions/cache@v4
with:
path: |
.cache
.eslintcache
tsconfig.tsbuildinfo
.prettierCache

View File

@@ -54,6 +54,7 @@ jobs:
uses: actions/cache@v4
with:
path: |
.cache
storybook-static
tsconfig.tsbuildinfo
key: storybook-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('src/**/*.{ts,vue,js}', '*.config.*', '.storybook/**/*') }}
@@ -118,6 +119,7 @@ jobs:
uses: actions/cache@v4
with:
path: |
.cache
storybook-static
tsconfig.tsbuildinfo
key: storybook-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('src/**/*.{ts,vue,js}', '*.config.*', '.storybook/**/*') }}

View File

@@ -33,6 +33,7 @@ jobs:
uses: actions/cache@v4
with:
path: |
.cache
coverage
.vitest-cache
key: vitest-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('src/**/*.{ts,vue,js}', 'vitest.config.*', 'tsconfig.json') }}

View File

@@ -32,6 +32,7 @@ jobs:
uses: actions/cache@v4
with:
path: |
.cache
tsconfig.tsbuildinfo
key: release-tools-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |

View File

@@ -29,6 +29,7 @@ jobs:
uses: actions/cache@v4
with:
path: |
.cache
dist
tsconfig.tsbuildinfo
key: dev-release-tools-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}