Skip to content

Commit

Permalink
Refactor Playwright workflow to let Playwright handle dependencies in…
Browse files Browse the repository at this point in the history
…stallation
  • Loading branch information
jeromehardaway committed Dec 19, 2024
1 parent 232ce28 commit 2bab054
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,13 @@ jobs:
- name: Install dependencies
run: yarn

# Updated WebKit dependencies with correct package versions
- name: Install WebKit dependencies
# Let Playwright handle the dependencies
- name: Install Playwright and browsers
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libwoff1 \
libharfbuzz-icu0 \
libgstreamer-plugins-base1.0-0 \
libgstreamer-gl1.0-0 \
libgstreamer1.0-0 \
libhyphen0 \
libmanette-0.2-0 \
libwebpdemux2 \
libenchant-2-2 \
libvpx6 \
libwebkit2gtk-4.1-0 \
libevent-2.1-7 \
libopus0 \
libxslt1.1 \
libwpe-1.0-0 \
libwpebackend-fdo-1.0-1 \
libjavascriptcoregtk-4.1-0
sudo apt-get update
sudo apt-get install -y libgstreamer-plugins-base1.0-0
yarn playwright install-deps
yarn playwright install
- name: Cache Playwright Browsers
uses: actions/cache@v4
Expand All @@ -64,9 +49,6 @@ jobs:
restore-keys: |
${{ runner.os }}-playwright-
- name: Install Playwright Browsers
run: yarn playwright install --with-deps

- name: Run Playwright tests
run: yarn playwright test

Expand Down

0 comments on commit 2bab054

Please sign in to comment.