File tree Expand file tree Collapse file tree 5 files changed +22
-12
lines changed Expand file tree Collapse file tree 5 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 17
17
- name : Setup PHP
18
18
uses : shivammathur/setup-php@v2
19
19
with :
20
- php-version : 8.1
20
+ php-version : 8.2
21
21
22
22
- name : Get Composer Cache Directory
23
23
id : composer-cache
Original file line number Diff line number Diff line change 15
15
- name : Setup PHP
16
16
uses : shivammathur/setup-php@v2
17
17
with :
18
- php-version : 8.1
18
+ php-version : 8.2
19
19
20
20
- name : Get Composer Cache Directory
21
21
id : composer-cache
Original file line number Diff line number Diff line change 13
13
14
14
strategy :
15
15
matrix :
16
- php-versions : ['8.1', '8.2']
16
+ php : ['8.2', '8.3']
17
+ laravel : ['10.*', '11.*']
18
+ include :
19
+ - laravel : 10.*
20
+ testbench : 8.*
21
+ - laravel : 11.*
22
+ testbench : 9.*
23
+
24
+ name : P${{ matrix.php }} - L${{ matrix.laravel }}
17
25
18
26
steps :
19
27
- uses : actions/checkout@v2
@@ -39,15 +47,15 @@ jobs:
39
47
- uses : actions/cache@v3
40
48
with :
41
49
path : ${{ steps.composer-cache.outputs.dir }}
42
- key : ${{ runner.os }}-composer-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }}
50
+ key : ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.laravel }}-${{ hashFiles('**/composer.lock') }}
43
51
restore-keys : |
44
- ${{ runner.os }}-composer-${{ matrix.php-versions }}
52
+ ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.laravel }}
45
53
46
54
- name : Install dependencies
47
55
if : steps.composer-cache.outputs.cache-hit != 'true'
48
56
run : |
49
- composer install
50
- composer dump
57
+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
58
+ composer update --prefer-stable --prefer-dist
51
59
52
60
- name : Run test phpunit
53
61
run : vendor/bin/phpunit
Original file line number Diff line number Diff line change 10
10
}
11
11
],
12
12
"require" : {
13
- "php" : " ^8.1" ,
14
- "laravel/framework" : " ^10.0" ,
15
- "laravel/sanctum" : " ^3.3"
13
+ "php" : " ^8.2" ,
14
+ "laravel/framework" : " 10.*" ,
15
+ "laravel/sanctum" : " ^3.3|^4.0" ,
16
+ "orchestra/testbench" : " 8.*"
16
17
},
17
18
"require-dev" : {
18
19
"friendsofphp/php-cs-fixer" : " ^3.4" ,
19
20
"nunomaduro/larastan" : " ^2.0" ,
20
- "orchestra/testbench" : " ^8.10" ,
21
21
"phpstan/phpstan" : " ^1.2" ,
22
- "phpunit/phpunit" : " ^9.3"
22
+ "phpunit/phpunit" : " ^9.3|^10.5 "
23
23
},
24
24
"autoload" : {
25
25
"psr-4" : {
Original file line number Diff line number Diff line change @@ -53,5 +53,7 @@ protected function getEnvironmentSetUp($app)
53
53
]);
54
54
55
55
$ app ['config ' ]->set ('auth.providers.users.model ' , User::class);
56
+
57
+ $ app ['config ' ]->set ('session.driver ' , 'array ' );
56
58
}
57
59
}
You can’t perform that action at this time.
0 commit comments