From fe2dbebdf5ab32ef4030d3f7885640fd68c06686 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 3 Sep 2024 09:26:58 +1000 Subject: [PATCH] Add support for PHP 8.3 tests --- .github/workflows/phpunit.yml | 2 +- tests/ci | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 5d62e100d678..6fad68f232cf 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -18,7 +18,7 @@ jobs: phpunit-versions: ['latest'] ci_node_total: [ 8 ] ci_node_index: [ 0, 1, 2, 3, 4, 5, 6, 7] - laravel: [10.*] + laravel: [11.*] dependency-version: [prefer-stable] env: diff --git a/tests/ci b/tests/ci index e0e5fbc9345e..d53e6b65e9de 100755 --- a/tests/ci +++ b/tests/ci @@ -28,14 +28,16 @@ $tests = \Illuminate\Support\Str::of($process->getOutput()) )) ->filter(fn (string $test) => !empty($test)) // Make sure there are no empty lines ->unique() // We only need unique classes - ->split((int) getenv('CI_NODE_TOTAL')) // Split it into equally sized chunks - ->get((int) getenv('CI_NODE_INDEX')); // Get the index we need for this instance + ->split(10) + ->get(1); + // ->split((int) getenv('CI_NODE_TOTAL')) // Split it into equally sized chunks + // ->get((int) getenv('CI_NODE_INDEX')); // Get the index we need for this instance /** * Run phpunit with a filter: * phpunit --filter 'TestClass|AnotherTestClass|...' */ -$process = new \Symfony\Component\Process\Process(['php artisan test', '--testdox', '--filter', $tests->join('|')], timeout: null); +$process = new \Symfony\Component\Process\Process(['php', 'artisan', 'test', '--testdox', '--filter', $tests->join('|')], timeout: null); $process->start(); // Make sure we have live data output