From 2bab0541e8e54445c99dd33b24159f849ecd0d2c Mon Sep 17 00:00:00 2001 From: Jerome Hardaway Date: Wed, 18 Dec 2024 20:06:18 -0500 Subject: [PATCH] Refactor Playwright workflow to let Playwright handle dependencies installation --- .github/workflows/playwright.yml | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index ad5b5f17..d473ea4e 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -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 @@ -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