diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5efac3dc..60a81fef 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -68,7 +68,7 @@ jobs: - name: Run tests run: | composer install --ignore-platform-req=php - ./bin/behat.sh + xvfb-run -n 99 ./bin/behat.sh env: WORDPRESS_VERSION: ${{ matrix.wordpress }} NAP_LENGTH: 10 diff --git a/bin/behat.sh b/bin/behat.sh index 32cf7310..291c0761 100755 --- a/bin/behat.sh +++ b/bin/behat.sh @@ -23,9 +23,8 @@ wait_for_port() { sleep $NAP_LENGTH done } + export DISPLAY=:99.0 -sh -e /etc/init.d/xvfb start -sleep 1 #wget -c -nc --retry-connrefused --tries=0 https://bit.ly/2TlkRyu -O selenium-server-standalone.jar wget -c -nc --retry-connrefused --tries=0 https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip -O driver.zip @@ -39,7 +38,7 @@ export PATH=$PATH:$PWD ls -la echo "Run selenium server - background process" -nohup bash -c "google-chrome-stable --headless --disable-gpu --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222 &" && sleep 1; cat nohup.out +nohup bash -c "google-chrome-stable --headless --disable-gpu --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222 &" > nohup.out && sleep 1; cat nohup.out wait_for_port sleep 5