Fixes for parallel testing in github actions

This commit is contained in:
David Bomba 2023-01-18 17:49:14 +11:00
parent 89956c7ff8
commit d837f956d7

View File

@ -13,7 +13,7 @@ require_once 'vendor/autoload.php';
* - Tests\Support\UuidTest::it_can_not_create_a_uuid_from_null
* - ...
*/
$process = new \Symfony\Component\Process\Process([__DIR__ . '/vendor/bin/phpunit', '--list-tests']);
$process = new \Symfony\Component\Process\Process([__DIR__ . '/../vendor/bin/phpunit', '--list-tests']);
$process->mustRun();
$tests = \Illuminate\Support\Str::of($process->getOutput())
@ -35,7 +35,7 @@ $tests = \Illuminate\Support\Str::of($process->getOutput())
* Run phpunit with a filter:
* phpunit --filter 'TestClass|AnotherTestClass|...'
*/
$process = new \Symfony\Component\Process\Process(['./vendor/bin/phpunit', '--filter', $tests->join('|')], timeout: null);
$process = new \Symfony\Component\Process\Process(['/.././vendor/bin/phpunit', '--filter', $tests->join('|')], timeout: null);
$process->start();
// Make sure we have live data output