File tree Expand file tree Collapse file tree 4 files changed +10
-14
lines changed Expand file tree Collapse file tree 4 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,11 @@ jobs:
26
26
tools : composer:v2
27
27
coverage : none
28
28
29
- - name : Install dependencies
30
- uses : nick-invision/retry@v1
31
- with :
32
- timeout_minutes : 5
33
- max_attempts : 5
34
- command : composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress ${{ matrix.flags }}
29
+ - name : Install Composer dependencies
30
+ run : |
31
+ if [[ "${{ matrix.php }}" = "8.3" ]]; then sed -i -e 's/\("orchestra\/testbench":[[:space:]]*\)".*"/\1"^9.0"/' composer.json; fi
32
+ composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress ${{ matrix.flags }}
35
33
36
34
- name : Execute tests
37
35
continue-on-error : ${{ matrix.php > 8 }}
38
- run : vendor/bin/phpunit --verbose
36
+ run : vendor/bin/phpunit
Original file line number Diff line number Diff line change 20
20
},
21
21
"require-dev" : {
22
22
"mockery/mockery" : " ^0.9|^1.3" ,
23
- "orchestra/testbench" : " ^5.19|^6.18|^7.0|^8.0" ,
24
- "phpunit/phpunit" : " ^8.5|^9.1|^10.0"
23
+ "orchestra/testbench" : " ^5.19|^6.18|^7.0|^8.0|^9.0 " ,
24
+ "phpunit/phpunit" : " ^8.5|^9.1|^10.0|^11.0 "
25
25
},
26
26
"autoload" : {
27
27
"psr-4" : {
Original file line number Diff line number Diff line change 3
3
namespace Recca0120 \LaravelParallel \Tests \Console ;
4
4
5
5
use Illuminate \Foundation \Auth \User ;
6
- use Illuminate \Foundation \Testing \RefreshDatabase ;
7
- use Illuminate \Foundation \Testing \WithFaker ;
8
6
use Illuminate \Http \Response ;
9
7
use Recca0120 \LaravelParallel \Console \ParallelCommand ;
10
8
use Recca0120 \LaravelParallel \ResponseIdentifier ;
14
12
15
13
class ParallelCommandTest extends TestCase
16
14
{
17
- use RefreshDatabase;
18
- use WithFaker;
19
-
20
15
/**
21
16
* @var User
22
17
*/
Original file line number Diff line number Diff line change 2
2
3
3
namespace Recca0120 \LaravelParallel \Tests \Fixtures ;
4
4
5
+ use Illuminate \Database \Schema \Builder ;
5
6
use Illuminate \Support \Facades \Hash ;
6
7
7
8
trait SetupDatabase
@@ -18,8 +19,10 @@ protected function databaseSetUp($app)
18
19
19
20
$ app ['config ' ]->set ('auth.providers.users.model ' , User::class);
20
21
22
+ /** @var Builder $schema */
21
23
$ schema = $ app ['db ' ]->getSchemaBuilder ();
22
24
25
+ $ schema ->dropIfExists ('users ' );
23
26
$ schema ->create ('users ' , function ($ table ) {
24
27
$ table ->increments ('id ' );
25
28
$ table ->string ('email ' )->unique ();
You can’t perform that action at this time.
0 commit comments