Skip to content

Commit

Permalink
Enhance Playwright workflow by adding specific WebKit dependencies i…
Browse files Browse the repository at this point in the history
…nstallation and clearing Playwright cache before installation
  • Loading branch information
jeromehardaway committed Dec 19, 2024
1 parent 871f211 commit 90b70e1
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,20 @@ jobs:
- name: Install dependencies
run: yarn

# Added this new step for WebKit dependencies
# Added specific WebKit dependencies installation
- name: Install WebKit dependencies
run: |
sudo apt-get update
sudo apt-get install -y libicu74 libwoff1 libharfbuzz-icu0 libgstreamer-plugins-base1.0-0 libgstreamer-gl1.0-0 libgstreamer1.0-0 libhyphen0 libmanette-0.2-0 libwebpdemux2 libenchant-2-2
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu70_70.1-2_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu-dev_70.1-2_amd64.deb
sudo dpkg -i libicu70_70.1-2_amd64.deb
sudo dpkg -i libicu-dev_70.1-2_amd64.deb
sudo apt-get install -y libwoff1 libharfbuzz-icu0 libgstreamer-plugins-base1.0-0 libgstreamer-gl1.0-0 libgstreamer1.0-0 libhyphen0 libmanette-0.2-0 libwebpdemux2 libenchant-2-2
# Clear Playwright cache before installation
- name: Clear Playwright cache
run: |
rm -rf ~/.cache/ms-playwright || true
- name: Cache Playwright Browsers
uses: actions/cache@v4
Expand All @@ -51,7 +60,9 @@ jobs:
${{ runner.os }}-playwright-
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
run: |
yarn playwright install --with-deps --force
yarn playwright install webkit --force
- name: Run Playwright tests
run: yarn playwright test
Expand Down

0 comments on commit 90b70e1

Please sign in to comment.