Skip to content

Commit 17a2b33

Browse files
committed
ci: Never cache playwright
1 parent ecc299d commit 17a2b33

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

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

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,6 @@ inputs:
88
runs:
99
using: "composite"
1010
steps:
11-
- name: Get Playwright version
12-
id: playwright-version
13-
run: echo "version=$(node -p "require('@playwright/test/package.json').version")" >> $GITHUB_OUTPUT
14-
shell: bash
15-
16-
- name: Cache playwright binaries
17-
uses: actions/cache@v4
18-
id: playwright-cache
19-
with:
20-
path: |
21-
~/.cache/ms-playwright
22-
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
23-
24-
# We always install all browsers, if uncached
25-
- name: Install Playwright dependencies (uncached)
26-
run: npx playwright install chromium webkit firefox --with-deps
27-
if: steps.playwright-cache.outputs.cache-hit != 'true'
28-
shell: bash
29-
30-
- name: Install Playwright system dependencies only (cached)
31-
run: npx playwright install-deps ${{ inputs.browsers || 'chromium webkit firefox' }}
32-
if: steps.playwright-cache.outputs.cache-hit == 'true'
11+
- name: Install Playwright dependencies
12+
run: npx playwright install ${{ inputs.browsers || 'chromium webkit firefox' }} --with-deps
3313
shell: bash

0 commit comments

Comments
 (0)