Skip to content

Commit

Permalink
only use the chromium shell browser when running on GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tbouffard committed Jan 6, 2025
1 parent 0802e88 commit 2ac9a6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/install-playwright-browser/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ runs:
# Only install browsers not available in the GH runner, or that need a special version modified for playwright
if: inputs.browser == 'chromium' || inputs.browser == 'firefox' || inputs.browser == 'webkit'
shell: bash
run: npx playwright install ${{inputs.browser}}
# --only-shell: only install headless shell when installing chromium
run: npx playwright install ${{inputs.browser}} --only-shell
# install OS dependencies required by browsers on the GitHub runner
# to be sure that the browser is correctly installed: https://github.com/microsoft/playwright/issues/5801
- name: Install ${{inputs.browser}} dependencies
Expand Down

0 comments on commit 2ac9a6d

Please sign in to comment.