fix: Replace deprecated Playwright action with recommended CLI approach

- Replace microsoft/playwright-github-action@v1 with npx playwright install --with-deps
- Fix 'browsers' parameter issue (not supported in deprecated action)
- Fix Linux distribution dependency installation issues
- Use official recommended approach from Playwright documentation
- Install chromium, firefox, and webkit browsers with system dependencies
This commit is contained in:
Peter Hanssens
2025-09-23 19:38:51 +10:00
parent 3b541776ce
commit 04b6529405

View File

@@ -61,9 +61,7 @@ jobs:
run: npm install run: npm install
- name: Install Playwright Browsers - name: Install Playwright Browsers
uses: microsoft/playwright-github-action@v1 run: npx playwright install --with-deps chromium firefox webkit
with:
browsers: chromium firefox webkit
- name: Build comprehensive demo - name: Build comprehensive demo
run: | run: |
@@ -252,9 +250,7 @@ jobs:
run: npm install run: npm install
- name: Install Playwright Browsers - name: Install Playwright Browsers
uses: microsoft/playwright-github-action@v1 run: npx playwright install --with-deps chromium firefox webkit
with:
browsers: chromium firefox webkit
- name: Run performance tests - name: Run performance tests
run: | run: |
@@ -286,9 +282,7 @@ jobs:
run: npm install run: npm install
- name: Install Playwright Browsers - name: Install Playwright Browsers
uses: microsoft/playwright-github-action@v1 run: npx playwright install --with-deps chromium firefox webkit
with:
browsers: chromium firefox webkit
- name: Run accessibility tests - name: Run accessibility tests
run: | run: |
@@ -325,9 +319,7 @@ jobs:
run: npm install run: npm install
- name: Install Playwright Browsers - name: Install Playwright Browsers
uses: microsoft/playwright-github-action@v1 run: npx playwright install --with-deps chromium firefox webkit
with:
browsers: chromium firefox webkit
- name: Run cross-browser tests - name: Run cross-browser tests
run: | run: |