Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosNB committed May 14, 2024
1 parent dfa5fce commit 082fd19
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ jobs:
- uses: browser-actions/setup-chrome@latest
with:
chrome-version: latest
- name: Download ChromeDriver
run: |
# Get the Chrome version
CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+')
# Get the ChromeDriver version that matches the Chrome version
CHROMEDRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION)
# Download and unzip the ChromeDriver
curl -sS -o /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip
unzip -q /tmp/chromedriver.zip -d /tmp
# Move ChromeDriver to a location in PATH
sudo mv /tmp/chromedriver /usr/local/bin/chromedriver
sudo chmod +x /usr/local/bin/chromedriver
- run: npm ci
- run: npx grunt
- run: npm test

0 comments on commit 082fd19

Please sign in to comment.