From 97b2a950a21415150ec5c3b30dcbe45e5f1d7364 Mon Sep 17 00:00:00 2001 From: Spuds Date: Fri, 29 Mar 2024 08:08:56 -0500 Subject: [PATCH] ! try actions --- .github/setup-selenium.sh | 25 +++++++++++++------------ .github/workflows/tests.yaml | 10 ++++++++++ 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/.github/setup-selenium.sh b/.github/setup-selenium.sh index b7bcee9240..5432d53a6b 100755 --- a/.github/setup-selenium.sh +++ b/.github/setup-selenium.sh @@ -33,20 +33,21 @@ echo "Installing Browser" # Available Chrome Versions # https://www.ubuntuupdates.org/package/google_chrome/stable/main/base/google-chrome-stable?id=202706 # -CHROME_VERSION='113.0.5672.63-1' #'110.0.5481.100-1' # '91.0.4472.114-1' -wget -v -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb -sudo dpkg -i /tmp/chrome.deb + +#CHROME_VERSION='112.0.5615.49-1' #'110.0.5481.100-1' # '91.0.4472.114-1' +#wget -v -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb +#sudo dpkg -i /tmp/chrome.deb # Download Chrome Driver -echo "Downloading Browser Driver" -CHROME_VERSION=$(google-chrome --version | cut -f 3 -d ' ' | cut -d '.' -f 1) \ - && CHROMEDRIVER_RELEASE=$(curl --location --fail --retry 3 https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION}) \ - && wget -nv -O "$CHROMEDRIVER_ZIP" "https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_RELEASE/chromedriver_linux64.zip" \ - && unzip "$CHROMEDRIVER_ZIP" \ - && rm -rf "$CHROMEDRIVER_ZIP" \ - && sudo mv chromedriver /usr/local/bin/chromedriver \ - && sudo chmod +x /usr/local/bin/chromedriver \ - && chromedriver --version +#echo "Downloading Browser Driver" +#CHROME_VERSION=$(google-chrome --version | cut -f 3 -d ' ' | cut -d '.' -f 1) \ +# && CHROMEDRIVER_RELEASE=$(curl --location --fail --retry 3 https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION}) \ +# && wget -nv -O "$CHROMEDRIVER_ZIP" "https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_RELEASE/chromedriver_linux64.zip" \ +# && unzip "$CHROMEDRIVER_ZIP" \ +# && rm -rf "$CHROMEDRIVER_ZIP" \ +# && sudo mv chromedriver /usr/local/bin/chromedriver \ +# && sudo chmod +x /usr/local/bin/chromedriver \ +# && chromedriver --version # Download Gecko driver #echo "Downloading geckodriver" diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 6701474ec6..20554a689f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -78,6 +78,16 @@ jobs: run: .github/setup-elkarte.sh $DB $PHP_VERSION working-directory: ./elkarte + - name: Setup Chrome + uses: browser-actions/setup-chrome@v1 + with: + chrome-version: 113 + + - name: Setup ChromeDriver + uses: nanasess/setup-chromedriver@v2 + with: + chromedriver-version: '113.0.5672.63' + - name: Run Unit Tests env: DB: ${{ matrix.db }}