File tree 4 files changed +21
-16
lines changed
4 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 16
16
- name : Setup PHP
17
17
uses : shivammathur/setup-php@v2
18
18
with :
19
- php-version : ' 8.1 '
19
+ php-version : ' 8.2 '
20
20
coverage : none
21
21
22
22
- name : Install composer dependencies
Original file line number Diff line number Diff line change 9
9
fail-fast : true
10
10
matrix :
11
11
os : [ubuntu-latest]
12
- php : [8.1 ]
13
- laravel : [^10.0 ]
12
+ php : [8.2 ]
13
+ laravel : [11.* ]
14
14
stability : [prefer-stable]
15
15
include :
16
- - laravel : ^10.0
17
- testbench : ^8.0
16
+ - laravel : 11.*
17
+ testbench : 9.*
18
18
19
19
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
20
20
21
21
steps :
22
22
- name : Checkout code
23
- uses : actions/checkout@v2
23
+ uses : actions/checkout@v3
24
24
25
25
- name : Setup PHP
26
26
uses : shivammathur/setup-php@v2
39
39
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
40
40
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
41
41
42
+ - name : Clear Composer cache
43
+ run : composer clear-cache
44
+
45
+ - name : Wait for a few seconds
46
+ run : sleep 5
47
+
42
48
- name : Execute tests
43
49
run : vendor/bin/phpunit
Original file line number Diff line number Diff line change 16
16
}
17
17
],
18
18
"require" : {
19
- "php" : " ^8.0 |^8.1 " ,
20
- "illuminate/support " : " ^9.0|^10 .0" ,
21
- "laravel/slack-notification-channel" : " ^2.4 " ,
19
+ "php" : " ^8.1 |^8.2 " ,
20
+ "illuminate/contracts " : " ^11 .0" ,
21
+ "laravel/slack-notification-channel" : " ^3.2 " ,
22
22
"ext-json" : " *"
23
23
},
24
24
"require-dev" : {
25
25
"friendsofphp/php-cs-fixer" : " ^3.2" ,
26
- "laravel/sanctum" : " ^3.2 " ,
27
- "orchestra/testbench" : " ^8 .0" ,
28
- "phpunit/phpunit" : " ^10.0" ,
26
+ "laravel/sanctum" : " ^4.0 " ,
27
+ "orchestra/testbench" : " ^9 .0" ,
28
+ "phpunit/phpunit" : " ^10.0|^11.0 " ,
29
29
"symfony/stopwatch" : " ^4.4|^5.0" ,
30
- "nunomaduro/larastan" : " ^2.4 " ,
30
+ "nunomaduro/larastan" : " ^2.0 " ,
31
31
"phpstan/extension-installer" : " ^1.1"
32
32
},
33
33
"autoload" : {
Original file line number Diff line number Diff line change @@ -23,9 +23,8 @@ public function test_can_measure_memory()
23
23
24
24
$ memory ->stop ();
25
25
26
- $ this ->assertEquals (
27
- 1 ,
28
- round ($ memory ->getMemory ())
26
+ $ this ->assertTrue (
27
+ $ memory ->getMemory () > 0
29
28
);
30
29
}
31
30
}
You can’t perform that action at this time.
0 commit comments