rmartinc 795636a6c7 Add chrome install action in GHA to force a specific version of chrome
Closes #38817

Signed-off-by: rmartinc <rmartinc@redhat.com>
2025-04-10 14:34:22 +02:00

31 lines
1.2 KiB
YAML

name: Install Chrome browser and driver for Testing
description: Download and install the compatible Chrome and Chromedriver
inputs:
version:
description: The version of Chrome and Chromedriver to install.
required: false
default: 134.0.6998.165 # Ensures compatibility with the testsuite
runs:
using: composite
steps:
# Cannot use Chrome for Testing. Acts weirdly and would probably require some changes in the testsuite.
- id: install-chrome
name: Install Chrome
shell: bash
run: |
sudo apt-get remove google-chrome-stable
wget http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${{ inputs.version }}-1_amd64.deb -O /tmp/google-chrome-stable.deb --no-verbose
sudo apt-get install -y /tmp/google-chrome-stable.deb
- id: install-chromedriver
name: Install Chromedriver
shell: bash
run: |
wget https://storage.googleapis.com/chrome-for-testing-public/${{ inputs.version }}/linux64/chromedriver-linux64.zip -O /tmp/chromedriver.zip --no-verbose
unzip -j /tmp/chromedriver.zip -d /tmp
sudo mv -f /tmp/chromedriver $CHROMEWEBDRIVER/chromedriver
sudo chmod +x $CHROMEWEBDRIVER/chromedriver