Skip to content

Commit 13bd61a

Browse files
committed
ci: fix playwright cache checking
1 parent 8e46a4b commit 13bd61a

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/test-runner.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,15 @@ jobs:
6060
path: ~/.cache/ms-playwright
6161
key: playwright-${{ runner.os }}-latest
6262
restore-keys: |
63+
playwright-${{ runner.os }}-latest
6364
playwright-${{ runner.os }}-
6465
6566
- name: Install and update Playwright
66-
if: steps.playwright-cache.outputs.cache-hit != 'true'
6767
run: |
68-
npm install playwright@latest
69-
npx playwright install --with-deps
68+
if [ ! -d ~/.cache/ms-playwright ]; then
69+
npm install playwright@latest
70+
npx playwright install --with-deps
71+
fi
7072
7173
- name: Validate composer.json and composer.lock
7274
run: composer validate --strict

0 commit comments

Comments
 (0)