Skip to content

Commit c861800

Browse files
committed
always install playwright??
1 parent d8bece3 commit c861800

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

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

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,6 @@ description: "Installs & caches playwright."
44
runs:
55
using: "composite"
66
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
268
run: npx playwright install --with-deps
279
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

0 commit comments

Comments
 (0)