Skip to content

Commit 7ba50a0

Browse files
committed
fix windows cache
1 parent b081025 commit 7ba50a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/actions/setup-playwright/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ description: "Setup Playwright with caching"
44
runs:
55
using: "composite"
66
steps:
7+
- name: Put $HOME in env
8+
if: runner.os == 'windows'
9+
shell: pwsh
10+
run: echo "HOME=$HOME" | Out-File -FilePath $env:GITHUB_ENV -Append
11+
712
- name: Cache Playwright
813
id: playwright-cache
914
uses: actions/cache@v4
1015
with:
11-
path: ~/.cache/ms-playwright
16+
path: ${{ runner.os == 'Windows' && format('{0}{1}', env.HOME, '\AppData\Local\ms-playwright') || runner.os == 'Linux' && '~/.cache/ms-playwright' || '~/Library/Caches/ms-playwright' }}
1217
key: playwright-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
1318

1419
- name: Install Playwright with dependencies

0 commit comments

Comments
 (0)