Skip to content

Commit

Permalink
Disable installing and running chrome for non js builds
Browse files Browse the repository at this point in the history
  • Loading branch information
NoResponseMate committed Dec 5, 2024
1 parent 907d930 commit 713ab7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ runs:
#####################################################################

- uses: browser-actions/setup-chrome@latest
if: inputs.e2e == 'yes' || inputs.e2e_js == 'yes'
if: inputs.e2e_js == 'yes'
with:
chrome-version: "${{ inputs.chrome_version }}"

- name: Run Chrome Headless
if: inputs.e2e == 'yes' || inputs.e2e_js == 'yes'
if: inputs.e2e_js == 'yes'
run: |
export DISPLAY=:99
chrome --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --remote-debugging-port=9222 --disable-extensions --no-sandbox --enable-features=Metal --headless --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' http://127.0.0.1 > /dev/null 2>&1 &
Expand Down

0 comments on commit 713ab7a

Please sign in to comment.