From 3b541776ce33fb2a64a9073e9d475d86c6650e78 Mon Sep 17 00:00:00 2001 From: Peter Hanssens Date: Tue, 23 Sep 2025 19:36:39 +1000 Subject: [PATCH] fix: Use proper Playwright GitHub Action instead of manual installation - Replace 'npx playwright install' with microsoft/playwright-github-action@v1 - Improves reliability and caching for browser installation - Supports chromium, firefox, and webkit browsers - More efficient than manual installation in CI environment --- .github/workflows/demo-deploy.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/demo-deploy.yml b/.github/workflows/demo-deploy.yml index febcd99..aac6833 100644 --- a/.github/workflows/demo-deploy.yml +++ b/.github/workflows/demo-deploy.yml @@ -60,8 +60,10 @@ jobs: - name: Install Node dependencies run: npm install - - name: Install Playwright browsers - run: npx playwright install --with-deps + - name: Install Playwright Browsers + uses: microsoft/playwright-github-action@v1 + with: + browsers: chromium firefox webkit - name: Build comprehensive demo run: | @@ -249,8 +251,10 @@ jobs: - name: Install dependencies run: npm install - - name: Install Playwright - run: npx playwright install + - name: Install Playwright Browsers + uses: microsoft/playwright-github-action@v1 + with: + browsers: chromium firefox webkit - name: Run performance tests run: | @@ -281,8 +285,10 @@ jobs: - name: Install dependencies run: npm install - - name: Install Playwright - run: npx playwright install + - name: Install Playwright Browsers + uses: microsoft/playwright-github-action@v1 + with: + browsers: chromium firefox webkit - name: Run accessibility tests run: | @@ -318,8 +324,10 @@ jobs: - name: Install dependencies run: npm install - - name: Install Playwright - run: npx playwright install + - name: Install Playwright Browsers + uses: microsoft/playwright-github-action@v1 + with: + browsers: chromium firefox webkit - name: Run cross-browser tests run: |