File tree 4 files changed +77
-62
lines changed 4 files changed +77
-62
lines changed Original file line number Diff line number Diff line change 1
- name : analyze
1
+ name : Analyse
2
2
3
3
on :
4
4
push :
8
8
9
9
jobs :
10
10
phpstan :
11
-
12
11
runs-on : ubuntu-latest
13
12
14
13
steps :
15
- - uses : actions/checkout@v4
14
+ - name : Checkout code
15
+ uses : actions/checkout@v4
16
16
17
17
- name : Setup PHP
18
18
uses : shivammathur/setup-php@v2
19
19
with :
20
- php-version : 8.2
20
+ php-version : 8.3
21
21
22
22
- name : Cache Composer packages
23
23
id : composer-cache
24
- uses : actions/cache@v3
24
+ uses : actions/cache@v4
25
25
with :
26
26
path : vendor
27
- key : ${{ runner.os }}-php-8.2
27
+ key : ${{ runner.os }}-php-8.3-${{ hashFiles('**/composer.json') }}
28
28
restore-keys : |
29
- ${{ runner.os }}-php-8.2
29
+ ${{ runner.os }}-php-8.3-
30
30
31
31
- name : Install dependencies
32
32
if : steps.composer-cache.outputs.cache-hit != 'true'
Original file line number Diff line number Diff line change 1
- name : style_fix
1
+ name : Style fix
2
2
3
3
on :
4
4
push :
5
5
branches : [master]
6
- pull_request :
7
- branches : [master]
8
6
9
7
jobs :
10
- style :
11
-
8
+ style-fix :
12
9
runs-on : ubuntu-latest
13
10
14
11
steps :
15
- - uses : actions/checkout@v4
16
-
17
- - name : Setup PHP
18
- uses : shivammathur/setup-php@v2
19
- with :
20
- php-version : ' 8.1'
21
-
22
- - name : Install dependencies
23
- run : |
24
- composer install --no-interaction --no-progress
25
- composer dump
26
-
27
- - name : Fix styles
28
- run : vendor/bin/php-cs-fixer fix
29
-
30
- - uses : EndBug/add-and-commit@v9
31
-
32
- - name : Run style
33
- run : vendor/bin/php-cs-fixer fix --dry-run --diff --format junit
12
+ - name : Checkout code
13
+ uses : actions/checkout@v4
14
+
15
+ - name : Setup PHP
16
+ uses : shivammathur/setup-php@v2
17
+ with :
18
+ php-version : 8.3
19
+
20
+ - name : Cache Composer packages
21
+ id : composer-cache
22
+ uses : actions/cache@v4
23
+ with :
24
+ path : vendor
25
+ key : ${{ runner.os }}-php-8.3-${{ hashFiles('**/composer.json') }}
26
+ restore-keys : |
27
+ ${{ runner.os }}-php-8.3-
28
+
29
+ - name : Install dependencies
30
+ if : steps.composer-cache.outputs.cache-hit != 'true'
31
+ run : |
32
+ composer install --no-interaction --no-progress
33
+ composer dump
34
+
35
+ - name : Fix styles
36
+ run : vendor/bin/php-cs-fixer fix
37
+
38
+ - name : Run style
39
+ run : vendor/bin/php-cs-fixer fix --dry-run --diff --format junit
40
+
41
+ - uses : EndBug/add-and-commit@v9
Original file line number Diff line number Diff line change 1
- name : tests
1
+ name : Tests
2
2
3
3
on :
4
4
push :
8
8
9
9
jobs :
10
10
phpunit :
11
-
12
11
runs-on : ubuntu-latest
13
12
14
13
strategy :
14
+ fail-fast : true
15
15
matrix :
16
- php-versions : ['8.2', '8.1']
17
- laravel : [9.*, 10.*]
18
- include :
19
- - laravel : 9.*
20
- testbench : 7.*
21
- - laravel : 10.*
22
- testbench : 8.*
16
+ php : [8.1, 8.2, 8.3]
23
17
24
18
steps :
25
- - uses : actions/checkout@v4
26
-
27
- - name : Setup PHP
28
- uses : shivammathur/setup-php@v2
29
- with :
30
- php-version : ${{ matrix.php-versions }}
31
- extensions : curl
32
-
33
- - name : Install dependencies
34
- run : |
35
- composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
36
- composer update --prefer-stable --prefer-dist --no-interaction --no-suggest
37
-
38
- - name : Run test phpunit
39
- run : vendor/bin/phpunit
19
+ - name : Checkout code
20
+ uses : actions/checkout@v4
21
+
22
+ - name : Setup PHP
23
+ uses : shivammathur/setup-php@v2
24
+ with :
25
+ php-version : ${{ matrix.php }}
26
+
27
+ - name : Validate composer.json
28
+ run : composer validate
29
+
30
+ - name : Cache Composer packages
31
+ id : composer-cache
32
+ uses : actions/cache@v4
33
+ with :
34
+ path : vendor
35
+ key : ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
36
+ restore-keys : |
37
+ ${{ runner.os }}-php-${{ matrix.php }}-
38
+
39
+ - name : Install dependencies
40
+ if : steps.composer-cache.outputs.cache-hit != 'true'
41
+ run : |
42
+ composer install --no-interaction --no-progress
43
+ composer dump
44
+
45
+ - name : Run test phpunit
46
+ run : vendor/bin/phpunit --stop-on-error --stop-on-failure
Original file line number Diff line number Diff line change 12
12
"require" : {
13
13
"php" : " ^8.1" ,
14
14
"aws/aws-php-sns-message-validator" : " ^1.1" ,
15
- "illuminate/config" : " ^9.0|^10.0" ,
16
- "illuminate/http" : " ^9.0|^10.0" ,
17
- "illuminate/routing" : " ^9.0|^10.0" ,
18
- "illuminate/support" : " ^9.0|^10.0"
15
+ "illuminate/config" : " ^9.0|^10.0|^11.0 " ,
16
+ "illuminate/http" : " ^9.0|^10.0|^11.0 " ,
17
+ "illuminate/routing" : " ^9.0|^10.0|^11.0 " ,
18
+ "illuminate/support" : " ^9.0|^10.0|^11.0 "
19
19
},
20
20
"require-dev" : {
21
21
"descom/dev" : " ^1.0" ,
22
22
"friendsofphp/php-cs-fixer" : " ^3.4" ,
23
23
"nunomaduro/larastan" : " ^2.0" ,
24
- "orchestra/testbench" : " ^7.5|^8.0" ,
24
+ "orchestra/testbench" : " ^7.5|^8.0|^9.0 " ,
25
25
"phpstan/phpstan" : " ^1.2" ,
26
- "phpunit/phpunit" : " ^9.3"
26
+ "phpunit/phpunit" : " ^9.3|^10.0|^10.5 "
27
27
},
28
28
"autoload" : {
29
29
"psr-4" : {
50
50
},
51
51
"minimum-stability" : " dev" ,
52
52
"prefer-stable" : true
53
- }
53
+ }
You can’t perform that action at this time.
0 commit comments