diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34e1a3f..e7cf233 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,10 +43,7 @@ jobs: - run: composer install - run: docker run -d --name mysql --net=host -e MYSQL_RANDOM_ROOT_PASSWORD=yes -e MYSQL_DATABASE=test -e MYSQL_USER=test -e MYSQL_PASSWORD=test ${{ matrix.rdbms }} - run: bash tests/wait-for-mysql.sh - - run: vendor/bin/phpunit --coverage-text - if: ${{ matrix.php >= 7.3 }} - - run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy - if: ${{ matrix.php < 7.3 }} + - run: vendor/bin/phpunit --coverage-text ${{ matrix.php < 7.3 && '-c phpunit.xml.legacy' || '' }} PHPUnit-hhvm: name: PHPUnit (HHVM) diff --git a/composer.json b/composer.json index 1b72d00..ace992a 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "react/socket": "^1.16" }, "require-dev": { - "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", + "phpunit/phpunit": "^9.6 || ^8.5 || ^5.7 || ^4.8.36", "react/async": "^4.3 || ^3 || ^2" }, "autoload": {