|
|
|
@ -87,16 +87,24 @@ jobs: |
|
|
|
|
|
|
|
|
|
# https://github.com/marketplace/actions/setup-chromedriver |
|
|
|
|
- name: Start chromedriver |
|
|
|
|
uses: nanasess/setup-chromedriver@master |
|
|
|
|
with: |
|
|
|
|
# Optional: do not specify to match Chrome's version |
|
|
|
|
chromedriver-version: '88.0.4324.96' |
|
|
|
|
# uses: nanasess/setup-chromedriver@master |
|
|
|
|
# with: |
|
|
|
|
# # Optional: do not specify to match Chrome's version |
|
|
|
|
# chromedriver-version: '88.0.4324.96' |
|
|
|
|
|
|
|
|
|
- run: | |
|
|
|
|
export DISPLAY=:99 |
|
|
|
|
chromedriver --url-base=/wd/hub & |
|
|
|
|
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional |
|
|
|
|
run: | |
|
|
|
|
wget https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip && unzip chromedriver_linux64.zip |
|
|
|
|
sudo mv chromedriver /usr/bin |
|
|
|
|
sudo chmod +x /usr/bin/chromedriver |
|
|
|
|
chromedriver --version |
|
|
|
|
sh -e /etc/init.d/xvfb start |
|
|
|
|
export DISPLAY=:99.0 |
|
|
|
|
|
|
|
|
|
# - run: | |
|
|
|
|
# export DISPLAY=:99 |
|
|
|
|
# chromedriver --url-base=/wd/hub & |
|
|
|
|
# sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional |
|
|
|
|
# chromedriver --version |
|
|
|
|
|
|
|
|
|
- name: Set up JDK 1.8 |
|
|
|
|
uses: actions/setup-java@v1 |
|
|
|
@ -107,6 +115,8 @@ jobs: |
|
|
|
|
run: | |
|
|
|
|
wget http://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar |
|
|
|
|
java -jar selenium-server-standalone-3.141.59.jar -log selenium.log > /dev/null & |
|
|
|
|
nohup bash -c "webdriver-manager start 2>&1 &" |
|
|
|
|
sleep 10 |
|
|
|
|
|
|
|
|
|
# - name: Start mysql service |
|
|
|
|
# run: sudo /etc/init.d/mysql start |
|
|
|
|