File tree Expand file tree Collapse file tree 1 file changed +1
-26
lines changed
.github/actions/install-playwright Expand file tree Collapse file tree 1 file changed +1
-26
lines changed Original file line number Diff line number Diff line change @@ -4,31 +4,6 @@ description: "Installs & caches playwright."
4
4
runs :
5
5
using : " composite"
6
6
steps :
7
- - name : Get npm cache directory
8
- id : npm-cache-dir
9
- run : echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
10
- shell : bash
11
-
12
- - name : Get Playwright version
13
- id : playwright-version
14
- run : echo "version=$(node -p "require('@playwright/test/package.json').version")" >> $GITHUB_OUTPUT
15
- shell : bash
16
-
17
- - uses : actions/cache@v4
18
- name : Check if Playwright browser is cached
19
- id : playwright-cache
20
- with :
21
- path : ${{ steps.npm-cache-dir.outputs.dir }}
22
- key : ${{ runner.os }}-Playwright-${{steps.playwright-version.outputs.version}}
23
-
24
- - name : Install Playwright browser if not cached
25
- if : steps.playwright-cache.outputs.cache-hit != 'true'
7
+ - name : Install Playwright browsers
26
8
run : npx playwright install --with-deps
27
9
shell : bash
28
- env :
29
- PLAYWRIGHT_BROWSERS_PATH : ${{steps.npm-cache-dir.outputs.dir}}
30
-
31
- - name : Install OS dependencies of Playwright if cache hit
32
- if : steps.playwright-cache.outputs.cache-hit == 'true'
33
- run : npx playwright install-deps
34
- shell : bash
You can’t perform that action at this time.
0 commit comments