File tree 1 file changed +11
-2
lines changed
.github/actions/install-playwright 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,23 @@ runs:
13
13
run : echo "version=$(node -p "require('@playwright/test/package.json').version")" >> $GITHUB_OUTPUT
14
14
shell : bash
15
15
16
- - name : Cache playwright binaries
17
- uses : actions/cache@v4
16
+ - name : Restore cached playwright binaries
17
+ uses : actions/cache/restore @v4
18
18
id : playwright-cache
19
19
with :
20
20
path : |
21
21
~/.cache/ms-playwright
22
22
key : playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
23
23
24
+ # Only store cache on develop branch
25
+ - name : Store cached playwright binaries
26
+ uses : actions/cache/save@v4
27
+ if : github.event_name == 'push' && github.ref == 'refs/heads/develop'
28
+ with :
29
+ path : |
30
+ ~/.cache/ms-playwright
31
+ key : playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
32
+
24
33
# We always install all browsers, if uncached
25
34
- name : Install Playwright dependencies (uncached)
26
35
run : npx playwright install chromium webkit firefox --with-deps
You can’t perform that action at this time.
0 commit comments