Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
md-sikder committed Nov 22, 2024
1 parent 482ba57 commit 6d64ceb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@ jobs:
- name: Install ChromeDriver
run: |
CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+')
DRIVER_VERSION=$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION)
wget https://chromedriver.storage.googleapis.com/$DRIVER_VERSION/chromedriver_linux64.zip
DRIVER_VERSION=$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION || echo "131.0.6778.85")
echo "Detected Chrome version: $CHROME_VERSION"
echo "Using ChromeDriver version: $DRIVER_VERSION"
wget --tries=3 https://chromedriver.storage.googleapis.com/$DRIVER_VERSION/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/bin/chromedriver
sudo chmod +x /usr/bin/chromedriver
chromedriver --version
google-chrome --version
- name: Set environment variable (Test)
run: echo "ENV=test" >> $GITHUB_ENV # Set the default environment to 'test'
run: echo "ENV=test" >> $GITHUB_ENV

- name: Run tests
run: |
Expand Down

0 comments on commit 6d64ceb

Please sign in to comment.