Skip to content

Commit 1406ad6

Browse files
committed
Do not cache playwright dependencies
1 parent f9c114e commit 1406ad6

File tree

1 file changed

+3
-28
lines changed

1 file changed

+3
-28
lines changed

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

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,8 @@ runs:
1717
shell: bash
1818
working-directory: ${{ inputs.cwd }}
1919

20-
21-
- name: Restore cached playwright binaries
22-
uses: actions/cache/restore@v4
23-
id: playwright-cache
24-
with:
25-
path: |
26-
~/.cache/ms-playwright
27-
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
28-
29-
# We always install all browsers, if uncached
30-
- name: Install Playwright dependencies (uncached)
20+
# We always install all browsers
21+
- name: Install Playwright dependencies
3122
run: npx playwright install chromium webkit firefox
32-
if: steps.playwright-cache.outputs.cache-hit != 'true'
3323
shell: bash
34-
working-directory: ${{ inputs.cwd }}
35-
36-
- name: Install Playwright system dependencies only (cached)
37-
run: npx playwright install-deps ${{ inputs.browsers || 'chromium webkit firefox' }}
38-
if: steps.playwright-cache.outputs.cache-hit == 'true'
39-
shell: bash
40-
working-directory: ${{ inputs.cwd }}
41-
42-
# Only store cache on develop branch
43-
- name: Store cached playwright binaries
44-
uses: actions/cache/save@v4
45-
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
46-
with:
47-
path: |
48-
~/.cache/ms-playwright
49-
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
24+
working-directory: ${{ inputs.cwd }}

0 commit comments

Comments
 (0)