diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 335aefa0..b96d525c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -48,6 +48,54 @@ jobs: composer global require php-coveralls/php-coveralls ~/.composer/vendor/bin/php-coveralls --coverage_clover=./src-tests/logs/clover.xml --json_path=./src-tests/logs/coveralls-upload.json -v + integration-tests: + runs-on: ubuntu-latest + name: Integration tests + env: + SELENIUM_VERSION: 3.141.59 + + steps: + - uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 7.4 + extensions: mbstring, intl, zip + coverage: xdebug + tools: composer:v2 + + - name: Install dependencies + run: composer update --no-interaction + + - name: Start Selenium server and Xvfb + run: | + google-chrome --version + chromedriver --version + SELENIUM_JAR=$(bin/steward install --no-interaction --no-ansi $SELENIUM_VERSION) + xvfb-run --server-args="-screen 0, 1280x720x24" --auto-servernum java -jar $SELENIUM_JAR -log selenium-server.log & + while ! nc -z localhost 4444