diff --git a/.github/actions/setup-frontend/action.yml b/.github/actions/setup-frontend/action.yml index 70af9aef5..2f78dc3eb 100644 --- a/.github/actions/setup-frontend/action.yml +++ b/.github/actions/setup-frontend/action.yml @@ -23,6 +23,18 @@ runs: cache: 'pnpm' cache-dependency-path: './pnpm-lock.yaml' + # Restore tool caches before running any build/lint operations + - name: Restore tool output cache + uses: actions/cache/restore@v4 + with: + path: | + ./.cache + ./tsconfig.tsbuildinfo + key: tool-cache-${{ runner.os }}-${{ hashFiles('./pnpm-lock.yaml') }}-${{ hashFiles('./src/**/*.{ts,vue,js,mts}', './*.config.*') }} + restore-keys: | + tool-cache-${{ runner.os }}-${{ hashFiles('./pnpm-lock.yaml') }}- + tool-cache-${{ runner.os }}- + - name: Install dependencies shell: bash run: pnpm install --frozen-lockfile diff --git a/.github/actions/setup-playwright/action.yml b/.github/actions/setup-playwright/action.yml index ebe31a4e7..89629fb2c 100644 --- a/.github/actions/setup-playwright/action.yml +++ b/.github/actions/setup-playwright/action.yml @@ -26,15 +26,3 @@ runs: if: steps.cache-playwright-browsers.outputs.cache-hit == 'true' shell: bash run: pnpm exec playwright install-deps - - - name: Cache tool outputs - uses: actions/cache@v4 - with: - path: | - ./.cache - ./tsconfig.tsbuildinfo - key: playwright-setup-cache-${{ runner.os }}-${{ hashFiles('./pnpm-lock.yaml') }}-${{ hashFiles('./src/**/*.{ts,vue,js}', './*.config.*') }} - restore-keys: | - playwright-setup-cache-${{ runner.os }}-${{ hashFiles('./pnpm-lock.yaml') }}- - playwright-setup-cache-${{ runner.os }}- - playwright-tools-cache-${{ runner.os }}-