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:
parent
f65af84191
commit
2915a03c6b
2 changed files with 4 additions and 42 deletions
38
.github/actions/install-chrome/action.yml
vendored
38
.github/actions/install-chrome/action.yml
vendored
|
@ -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 ..
|
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue