Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosNB authored May 14, 2024
1 parent 4ddcc7b commit 9e77379
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ jobs:
chrome-version: latest
- name: Download ChromeDriver
run: |
# Get the Chrome version
CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+')
# Get the full Chrome version
CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+\.\d+')
echo "Chrome version: $CHROME_VERSION"
# Get the ChromeDriver version that matches the Chrome version
CHROMEDRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION)
# Get the major version of Chrome
CHROME_MAJOR_VERSION=$(echo $CHROME_VERSION | cut -d '.' -f 1)
echo "Chrome major version: $CHROME_MAJOR_VERSION"
# Get the ChromeDriver version that matches the Chrome major version
CHROMEDRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_MAJOR_VERSION)
echo "ChromeDriver version: $CHROMEDRIVER_VERSION"
# Verify the ChromeDriver version was fetched correctly
Expand All @@ -43,6 +47,7 @@ jobs:
# 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 9e77379

Please sign in to comment.