diff --git a/.github/workflows/AcceptanceTests.yml b/.github/workflows/AcceptanceTests.yml index 6e4b42073..e164b1c1c 100644 --- a/.github/workflows/AcceptanceTests.yml +++ b/.github/workflows/AcceptanceTests.yml @@ -63,7 +63,7 @@ jobs: run: | export APP_IP=`ip addr show eth0 | grep -Po 'inet \K[\d.]+'` sed -i -e "s/LOCAL_DOMAIN/$APP_IP:8888/" Tests/Acceptance/_envs/github-actions.yml - php -S 0.0.0.0:8888 -t .Build/public/ &> php.log.txt & + php -S 0.0.0.0:8888 -t .Build/public/ &> php.log & sleep 2; - name: Test PHP webserver and initialize TYPO3 cache @@ -74,8 +74,13 @@ jobs: - name: Start Selenium standalone run: | echo $SELENIUM_JAR_PATH - java -Djava.awt.headless=true -jar $SELENIUM_JAR_PATH standalone & - sleep 5; + xvfb-run --server-args="-screen 0, 1280x720x24" --auto-servernum java -jar $SELENIUM_JAR_PATH standalone --log selenium-server.log & + + - name: Wait for browser & PHP to start + timeout-minutes: 1 + run: | + while ! nc -z 127.0.0.1 4444