diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ed7035..75d032e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,10 +30,7 @@ jobs: ini-file: development - run: composer install - run: docker run --net=host -d redis - - run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml - if: ${{ matrix.php >= 7.3 }} - - run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml -c phpunit.xml.legacy - if: ${{ matrix.php < 7.3 }} + - run: REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml ${{ matrix.php < 7.3 && '-c phpunit.xml.legacy' || '' }} - name: Check 100% code coverage shell: php {0} run: | diff --git a/composer.json b/composer.json index 967f59b..d35b357 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ }, "require-dev": { "phpstan/phpstan": "1.12.32 || 1.4.10", - "phpunit/phpunit": "^9.6 || ^7.5", + "phpunit/phpunit": "^9.6 || ^8.5 || ^7.5", "react/async": "^4.3 || ^3.2" }, "autoload": {