File tree Expand file tree Collapse file tree 5 files changed +29
-103
lines changed Expand file tree Collapse file tree 5 files changed +29
-103
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
tests :
7
7
runs-on : ${{ matrix.os }}
8
8
strategy :
9
- fail-fast : false
9
+ fail-fast : true
10
10
matrix :
11
11
os : [ubuntu-latest]
12
- php : [8.0, 7.4, 8.1 ]
13
- laravel : [8.*, 9.*, 10.*]
12
+ php : [8.2,8.3 ]
13
+ laravel : [10.*]
14
14
dependency-version : [prefer-stable]
15
15
include :
16
16
- laravel : 10.*
17
- testbench : 8.*
18
- - laravel : 8.*
19
- testbench : 6.*
20
- - laravel : 9.*
21
- testbench : 7.*
22
- exclude :
23
- - laravel : 9.*
24
- php : 7.4
25
- - laravel : 10.*
26
- php : 8.0
27
- - laravel : 10.*
28
- php : 7.4
17
+ testbench : 8.*
29
18
30
- name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
19
+ name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
31
20
32
21
steps :
33
22
- name : Checkout code
34
- uses : actions/checkout@v2
23
+ uses : actions/checkout@v4
35
24
36
25
- name : Cache dependencies
37
- uses : actions/cache@v2
26
+ uses : actions/cache@v4
38
27
with :
39
28
path : ~/.composer/cache/files
40
29
key : dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
Original file line number Diff line number Diff line change 4
4
[ ![ run-tests-laravel-8] ( https://img.shields.io/github/workflow/status/f9webltd/laravel-deletable/run-tests-laravel-8?style=flat-square )] ( https://github.com/f9webltd/laravel-deletable/actions )
5
5
[ ![ StyleCI Status] ( https://github.styleci.io/repos/278581318/shield )] ( https://github.styleci.io/repos/278581318 )
6
6
[ ![ Packagist License] ( https://img.shields.io/packagist/l/f9webltd/laravel-deletable?style=flat-square )] ( https://packagist.org/packages/f9webltd/laravel-deletable )
7
+ [ ![ PHP ^8.2] ( https://img.shields.io/badge/php-%5E8.2-brightgreen )] ( )
7
8
8
9
# Laravel Deletable
9
10
10
11
Gracefully handle deletion restrictions on your [ Eloquent models] ( https://laravel.com/docs/7.x/eloquent ) , as featured on [ Laravel News] ( https://laravel-news.com/laravel-deletable-trait )
11
12
12
13
## Requirements
13
14
14
- PHP >= 7.2 , Laravel >= 5.8 .
15
+ PHP ` ^8.2 ` , Laravel ` ^10.0 ` .
15
16
16
- PHP 8.0 is supported for Laravel >= 6x
17
+ For older versions of PHP / Laravel use version [ 1.0.6 ] ( https://github.com/f9webltd/laravel-deletable/tree/1.0.6 )
17
18
18
19
## Installation
19
20
Original file line number Diff line number Diff line change 18
18
}
19
19
],
20
20
"require" : {
21
- "php" : " ^7.2 | ^8.0 " ,
22
- "illuminate/config" : " 5.8.*|^6.0|^7.0|^8.0|^9.0| ^10.0" ,
23
- "illuminate/container" : " 5.8.*|^6.0|^7.0|^8.0|^9.0| ^10.0" ,
24
- "illuminate/contracts" : " 5.8.*|^6.0|^7.0|^8.0|^9.0| ^10.0" ,
25
- "illuminate/database" : " 5.8.*|^6.0|^7.0|^8.0|^9.0| ^10.0"
21
+ "php" : " ^8.2 " ,
22
+ "illuminate/config" : " ^10.0" ,
23
+ "illuminate/container" : " ^10.0" ,
24
+ "illuminate/contracts" : " ^10.0" ,
25
+ "illuminate/database" : " ^10.0"
26
26
},
27
27
"require-dev" : {
28
- "orchestra/testbench" : " >=3 .8" ,
29
- "phpunit/phpunit" : " ^7.0|^8.0|^9.3 "
28
+ "orchestra/testbench" : " ^8 .8" ,
29
+ "phpunit/phpunit" : " ^10.0 "
30
30
},
31
31
"autoload" : {
32
32
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit bootstrap = " vendor/autoload.php "
3
- backupGlobals = " false "
4
- backupStaticAttributes = " false "
2
+ <phpunit xmlns : xsi = " http://www.w3.org/2001/XMLSchema-instance "
3
+ xsi : noNamespaceSchemaLocation = " vendor/phpunit/phpunit/phpunit.xsd "
4
+ bootstrap = " vendor/autoload.php "
5
5
colors =" true"
6
- verbose =" true"
7
- convertErrorsToExceptions =" true"
8
- convertNoticesToExceptions =" true"
9
- convertWarningsToExceptions =" true"
10
- processIsolation =" false"
11
- stopOnFailure =" false" >
6
+ >
12
7
<testsuites >
13
8
<testsuite name =" Test Suite" >
14
9
<directory >tests</directory >
15
10
</testsuite >
16
11
</testsuites >
17
- <filter >
18
- <whitelist >
19
- <directory suffix =" .php" >src/</directory >
20
- </whitelist >
21
- </filter >
22
- <logging >
23
- <log type =" tap" target =" build/report.tap" />
24
- <log type =" junit" target =" build/report.junit.xml" />
25
- <log type =" coverage-html" target =" build/coverage" />
26
- <log type =" coverage-text" target =" build/coverage.txt" />
27
- <log type =" coverage-clover" target =" build/logs/clover.xml" />
28
- </logging >
12
+ <source >
13
+ <include >
14
+ <directory >app</directory >
15
+ </include >
16
+ </source >
29
17
<php >
30
- <server name =" APP_NAME" value =" Laravel Deletable" />
31
- <server name =" DB_CONNECTION" value =" sqlite" />
32
- <server name =" DB_DATABASE" value =" :memory:" />
18
+ <env name =" APP_NAME" value =" Laravel Deletable" />
19
+ <env name =" DB_CONNECTION" value =" sqlite" />
20
+ <env name =" DB_DATABASE" value =" :memory:" />
33
21
</php >
34
22
</phpunit >
35
23
You can’t perform that action at this time.
0 commit comments