Removing chrome-install dependency from GH actions, and Chrome and Firefox webdriver system property from CI workflow

Closes #30408

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
This commit is contained in:
Lukas Hanusovsky 2024-06-26 20:08:07 +02:00 committed by GitHub
parent f65af84191
commit 2915a03c6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 42 deletions

View file

@ -1,38 +0,0 @@
name: Install Chrome browser and driver for Testing
description: Download and install the latest available Chrome for Testing and Chromedriver
runs:
using: composite
steps:
- id: cache-chrome-browser
name: Chrome browser cache
uses: actions/cache@v4
with:
path: ./chrome
key: chrome
- id: cache-chromedriver
name: Chrome driver cache
uses: actions/cache@v4
with:
path: ./chromedriver
key: chromedriver
- id: install-chrome
name: Install Chrome
shell: bash
run: |
sudo apt-get remove google-chrome-stable
npx @puppeteer/browsers install chrome
npx @puppeteer/browsers install chromedriver
# In case there's more than one version of each package, let's use only the latest
LATEST_CHROME=$(ls -td $PWD/chrome/*/ | head -1)
LATEST_CHROMEDRIVER=$(ls -td $PWD/chromedriver/*/ | head -1)
sudo ln -s -f "${LATEST_CHROME}chrome-linux64/chrome" /usr/bin/google-chrome-stable
sudo cp -u "${LATEST_CHROMEDRIVER}chromedriver-linux64/chromedriver" $CHROMEWEBDRIVER/
# Remove any older version of browser or driver so we don't keep it in the cache
cd chrome
rm -R $(ls -lt | grep '^d' | tail -1 | tr " " "\n" | tail -1)
cd ../chromedriver
rm -R $(ls -lt | grep '^d' | tail -1 | tr " " "\n" | tail -1)
cd ..

View file

@ -114,7 +114,7 @@ jobs:
run: |
TESTS=`testsuite/integration-arquillian/tests/base/testsuites/base-suite.sh ${{ matrix.group }}`
echo "Tests: $TESTS"
./mvnw test ${{ env.SUREFIRE_RETRY }} -Pauth-server-quarkus "-Dwebdriver.chrome.driver=$CHROMEWEBDRIVER/chromedriver" -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base 2>&1 | misc/log/trimmer.sh
./mvnw test ${{ env.SUREFIRE_RETRY }} -Pauth-server-quarkus -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base 2>&1 | misc/log/trimmer.sh
- name: Upload JVM Heapdumps
if: always()
@ -155,7 +155,7 @@ jobs:
run: |
TESTS="org.keycloak.testsuite.adapter.**"
echo "Tests: $TESTS"
./mvnw test ${{ env.SUREFIRE_RETRY }} -Pauth-server-quarkus -Papp-server-wildfly "-Dwebdriver.chrome.driver=$CHROMEWEBDRIVER/chromedriver" -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base 2>&1 | misc/log/trimmer.sh
./mvnw test ${{ env.SUREFIRE_RETRY }} -Pauth-server-quarkus -Papp-server-wildfly -Dtest=$TESTS -pl testsuite/integration-arquillian/tests/base 2>&1 | misc/log/trimmer.sh
- name: Upload JVM Heapdumps
if: always()
@ -697,7 +697,7 @@ jobs:
run: |
TESTS=`testsuite/integration-arquillian/tests/base/testsuites/suite.sh forms`
echo "Tests: $TESTS"
./mvnw test ${{ env.SUREFIRE_RETRY }} -Pauth-server-quarkus -Dtest=$TESTS -Dbrowser=${{ matrix.browser }} "-Dwebdriver.chrome.driver=$CHROMEWEBDRIVER/chromedriver" "-Dwebdriver.gecko.driver=$GECKOWEBDRIVER/geckodriver" -f testsuite/integration-arquillian/tests/base/pom.xml 2>&1 | misc/log/trimmer.sh
./mvnw test ${{ env.SUREFIRE_RETRY }} -Pauth-server-quarkus -Dtest=$TESTS -Dbrowser=${{ matrix.browser }} -f testsuite/integration-arquillian/tests/base/pom.xml 2>&1 | misc/log/trimmer.sh
- name: Upload JVM Heapdumps
if: always()
@ -739,7 +739,7 @@ jobs:
run: |
TESTS=`testsuite/integration-arquillian/tests/base/testsuites/suite.sh webauthn`
echo "Tests: $TESTS"
./mvnw test ${{ env.SUREFIRE_RETRY }} -Pauth-server-quarkus -Dtest=$TESTS -Dbrowser=${{ matrix.browser }} "-Dwebdriver.chrome.driver=$CHROMEWEBDRIVER/chromedriver" "-Dwebdriver.gecko.driver=$GECKOWEBDRIVER/geckodriver" -pl testsuite/integration-arquillian/tests/base 2>&1 | misc/log/trimmer.sh
./mvnw test ${{ env.SUREFIRE_RETRY }} -Pauth-server-quarkus -Dtest=$TESTS -Dbrowser=${{ matrix.browser }} -pl testsuite/integration-arquillian/tests/base 2>&1 | misc/log/trimmer.sh
- name: Upload JVM Heapdumps
if: always()