mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
31 lines
1.2 KiB
YAML
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
|