File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,25 @@ jobs:
2525 with :
2626 version : 10
2727
28- - name : Cache playwright executables
28+ - name : Get pnpm store path
29+ run : echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_ENV
30+
31+ - name : Cache pnpm dependencies
2932 uses : actions/cache@v4
3033 with :
31- path : /home/runner/.cache/
34+ path : ${{ env.PNPM_STORE_PATH }}
35+ key : pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
36+
37+ # https://github.com/microsoft/playwright/issues/7249#issuecomment-2664215505
38+ - name : Extract Playwright version
39+ run : echo "PLAYWRIGHT_VERSION=$(jq -r '.dependencies.playwright' package.json)" >> $GITHUB_ENV
40+
41+ - name : Cache Playwright
42+ id : playwright-cache
43+ uses : actions/cache@v3
44+ with :
45+ path : ~/.cache/ms-playwright
46+ key : playwright-${{ env.PLAYWRIGHT_VERSION }}
3247
3348 - name : Install dependencies
3449 run : |
You can’t perform that action at this time.
0 commit comments