Skip to content

Commit

Permalink
! try actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Spuds committed Mar 29, 2024
1 parent e5a5f83 commit 97b2a95
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/setup-selenium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 97b2a95

Please sign in to comment.