Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Commit

Permalink
Selenium workflow fix (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
berk76 authored Nov 17, 2023
1 parent 5ccbde8 commit 7734deb
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/selenium-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
distribution: 'microsoft'
java-version: 11

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'

- name: Start containers
run: |
cd docker-compose
Expand All @@ -47,21 +53,9 @@ jobs:
- name: Install Google Chrome
run: |
sudo apt install google-chrome-stable
npx @puppeteer/browsers install chrome@stable
google-chrome --version
- name: Install ChromeDriver
run: |
CHROME_VERSION=$(google-chrome --version | cut -f 3 -d ' ' | cut -d '.' -f 1) \
&& CHROMEDRIVER_RELEASE=$(curl --location --fail --retry 3 http://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION}) \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/chromedriver_linux64.zip "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_RELEASE/chromedriver_linux64.zip" \
&& cd /tmp \
&& unzip chromedriver_linux64.zip \
&& rm -rf chromedriver_linux64.zip \
&& sudo mv chromedriver /usr/local/bin/chromedriver \
&& sudo chmod +x /usr/local/bin/chromedriver \
&& chromedriver --version
- name: Run selenium test
run: |
git clone https://github.com/svjis/svjis-selenium.git
Expand Down

0 comments on commit 7734deb

Please sign in to comment.