File tree 4 files changed +16
-19
lines changed 4 files changed +16
-19
lines changed Original file line number Diff line number Diff line change 8
8
strategy :
9
9
fail-fast : true
10
10
matrix :
11
- os : [ubuntu-latest, windows-latest ]
11
+ os : [ubuntu-latest]
12
12
php : ["8.0", "8.1"]
13
- laravel : ["^8.67", "^9.0"]
13
+ laravel : ["^8.67", "^9.0", "^10.0" ]
14
14
dependency-version : [prefer-lowest, prefer-stable]
15
15
include :
16
16
- laravel : " ^8.67"
17
17
testbench : " ^6.23"
18
- testbench-core : " ^6.27"
19
18
- laravel : " ^9.0"
20
- testbench : " 7.0"
21
- testbench-core : " 7.0"
19
+ testbench : " ^7.0"
20
+ - laravel : " ^10.0"
21
+ testbench : " ^8.0"
22
22
exclude :
23
- - php : " 8.0"
24
- laravel : " ^8.67"
25
- dependency-version : prefer-lowest
26
- - php : " 8.1"
27
- laravel : " ^8.67"
23
+ - laravel : " ^8.67"
28
24
dependency-version : prefer-lowest
25
+ - php : " 8.0"
26
+ laravel : " ^10.0"
29
27
30
28
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
31
29
47
45
48
46
- name : Install dependencies
49
47
run : |
50
- composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "orchestra/testbench-core:${{ matrix.testbench-core }}" --no-interaction --no-update
48
+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
51
49
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
52
50
53
51
- name : Execute tests
Original file line number Diff line number Diff line change 1
1
# ⚡️ Laravel Actions
2
2
3
3
[ ![ Latest Version on Packagist] ( https://img.shields.io/packagist/v/lorisleiva/laravel-actions.svg )] ( https://packagist.org/packages/lorisleiva/laravel-actions )
4
- [ ![ GitHub Tests Action Status] ( https://img.shields.io/github/workflow/status/lorisleiva/laravel-actions/Tests?label=tests )] ( https://github.com/lorisleiva/laravel-actions/actions?query=workflow%3ATests+branch%3Amain )
4
+ [ ![ GitHub Tests Action Status] ( https://img.shields.io/github/actions/ workflow/status/lorisleiva/laravel-actions/run-tests.yml?branch=main )] ( https://github.com/lorisleiva/laravel-actions/actions?query=workflow%3ATests+branch%3Amain )
5
5
[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/lorisleiva/laravel-actions.svg )] ( https://packagist.org/packages/lorisleiva/laravel-actions )
6
6
7
7
![ hero] ( https://user-images.githubusercontent.com/3642397/104024620-4e572400-51bb-11eb-97fc-c2692b16eaa7.png )
Original file line number Diff line number Diff line change 21
21
}
22
22
],
23
23
"require" : {
24
- "php" : " ^8.0" ,
25
- "illuminate/contracts" : " ^8.15 || 9.0 - 9.34 || ^9.36" ,
26
- "lorisleiva/lody" : " ^0.3 .0"
24
+ "php" : " ^8.0|^8.1 " ,
25
+ "illuminate/contracts" : " ^8.15 || 9.0 - 9.34 || ^9.36 || ^10.0 " ,
26
+ "lorisleiva/lody" : " ^0.4 .0"
27
27
},
28
28
"require-dev" : {
29
- "orchestra/testbench" : " 7.0.0" ,
30
- "orchestra/testbench-core" : " 7.0.0" ,
29
+ "orchestra/testbench" : " ^8.0" ,
31
30
"pestphp/pest" : " ^1.2" ,
32
31
"phpunit/phpunit" : " ^9.5"
33
32
},
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public function handle()
60
60
->and ($ firstParameter ['class ' ])->toBe (get_class ($ model ))
61
61
->and ($ firstParameter ['id ' ])->toBe ($ model ->id )
62
62
->and ($ firstParameter ['relations ' ])->toBe ([])
63
- ->and ($ firstParameter ['connection ' ])->toBe ( " sqlite " );
63
+ ->and ($ firstParameter ['connection ' ])->toBeIn ([ " testing " , " sqlite "] );
64
64
});
65
65
66
66
it ('unserialises Eloquent models within the parameters ' , function () {
@@ -95,7 +95,7 @@ public function handle()
95
95
->and ($ firstParameter ['class ' ])->toBe (get_class ($ modelA ))
96
96
->and ($ firstParameter ['id ' ])->toBe ($ collection ->pluck ('id ' )->toArray ())
97
97
->and ($ firstParameter ['relations ' ])->toBe ([])
98
- ->and ($ firstParameter ['connection ' ])->toBe ( " sqlite " );
98
+ ->and ($ firstParameter ['connection ' ])->toBeIn ([ " testing " , " sqlite "] );
99
99
});
100
100
101
101
it ('unserialises Eloquent collections within the parameters ' , function () {
You can’t perform that action at this time.
0 commit comments