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 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
berk76 authored Nov 17, 2023
1 parent 7f08bc9 commit e67c746
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/selenium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,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: |
git clone https://github.com/svjis/svjis-docker.git
Expand Down Expand Up @@ -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 test
run: mvn --no-transfer-progress package --file pom.xml

Expand Down

0 comments on commit e67c746

Please sign in to comment.