diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d34901e7844..ec0263a68c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,9 @@ jobs: unzip -d /tmp/phpunit-7.5-fork /tmp/phpunit-7.5-fork.zip composer bin phpunit config --unset platform composer bin phpunit config repositories.0 '{"type": "path", "url": "/tmp/phpunit-7.5-fork/phpunit-add-compatibility-with-php8-to-phpunit-7", "options": {"symlink": false}}' - composer bin phpunit require --dev -W phpunit/phpunit:@dev --ignore-platform-reqs + composer bin phpunit require --dev -W phpunit/phpunit:@dev --ignore-platform-reqs + rm -rf ./vendor/phpunit/ + composer dump-autoload fi - name: Init DB and WP diff --git a/.github/workflows/pr-unit-tests.yml b/.github/workflows/pr-unit-tests.yml index 5823b209c24..06452e8adcc 100644 --- a/.github/workflows/pr-unit-tests.yml +++ b/.github/workflows/pr-unit-tests.yml @@ -62,7 +62,9 @@ jobs: unzip -d /tmp/phpunit-7.5-fork /tmp/phpunit-7.5-fork.zip composer bin phpunit config --unset platform composer bin phpunit config repositories.0 '{"type": "path", "url": "/tmp/phpunit-7.5-fork/phpunit-add-compatibility-with-php8-to-phpunit-7", "options": {"symlink": false}}' - composer bin phpunit require --dev -W phpunit/phpunit:@dev --ignore-platform-reqs + composer bin phpunit require --dev -W phpunit/phpunit:@dev --ignore-platform-reqs + rm -rf ./vendor/phpunit/ + composer dump-autoload fi - name: Init DB and WP