File tree 4 files changed +68
-66
lines changed
4 files changed +68
-66
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@v2
14
+ - name : Checkout code
15
+ uses : actions/checkout@v4
16
+
17
+ - name : Setup PHP
18
+ uses : shivammathur/setup-php@v2
19
+ with :
20
+ php-version : 8.3
16
21
17
- - name : Setup PHP
18
- uses : shivammathur/setup-php@v2
19
- with :
20
- php-version : 8.1
22
+ - name : Cache Composer packages
23
+ id : composer-cache
24
+ uses : actions/cache@v4
25
+ with :
26
+ path : vendor
27
+ key : ${{ runner.os }}-php-8.3-${{ hashFiles('**/composer.json') }}
28
+ restore-keys : |
29
+ ${{ runner.os }}-php-8.3-
21
30
22
- - name : Cache Composer packages
23
- id : composer-cache
24
- uses : actions/cache@v2
25
- with :
26
- path : vendor
27
- key : ${{ runner.os }}-php-v28.1-${{ hashFiles('**/composer.lock') }}
28
- restore-keys : |
29
- ${{ runner.os }}-php-v28.1-
30
- - name : Install dependencies
31
- if : steps.composer-cache.outputs.cache-hit != 'true'
32
- run : |
33
- composer install
34
- composer dump
31
+ - name : Install dependencies
32
+ if : steps.composer-cache.outputs.cache-hit != 'true'
33
+ run : |
34
+ composer install --no-interaction --no-progress
35
+ composer dump
35
36
36
- - name : Run analyse phpstan
37
- run : vendor/bin/phpstan analyse --error-format github
37
+ - name : Run analyse phpstan
38
+ run : vendor/bin/phpstan analyse --error-format github
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
6
7
7
jobs :
8
- style :
8
+ style-fix :
9
9
runs-on : ubuntu-latest
10
10
11
11
steps :
12
- - uses : actions/checkout@v3
12
+ - name : Checkout code
13
+ uses : actions/checkout@v4
13
14
14
15
- name : Setup PHP
15
16
uses : shivammathur/setup-php@v2
16
17
with :
17
- php-version : 8.1
18
+ php-version : 8.3
18
19
19
20
- name : Cache Composer packages
20
21
id : composer-cache
21
- uses : actions/cache@v3
22
+ uses : actions/cache@v4
22
23
with :
23
24
path : vendor
24
- key : ${{ runner.os }}-php-8.1 -${{ hashFiles('**/composer.lock ') }}
25
+ key : ${{ runner.os }}-php-8.3 -${{ hashFiles('**/composer.json ') }}
25
26
restore-keys : |
26
- ${{ runner.os }}-php-8.1
27
+ ${{ runner.os }}-php-8.3-
28
+
27
29
- name : Install dependencies
28
30
if : steps.composer-cache.outputs.cache-hit != 'true'
29
31
run : |
30
- composer install
32
+ composer install --no-interaction --no-progress
31
33
composer dump
34
+
32
35
- name : Fix styles
33
36
run : vendor/bin/php-cs-fixer fix
34
37
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 : [8.0, 8.1]
17
- laravel : [10.*, 9.*]
18
-
19
- name : PHP${{ matrix.php }}
16
+ php : [8.0, 8.1, 8.2, 8.3]
20
17
21
18
steps :
22
- - uses : actions/checkout@v2
23
-
24
- - name : Setup PHP
25
- uses : shivammathur/setup-php@v2
26
- with :
27
- php-version : ${{ matrix.php }}
28
- extensions : gd
29
-
30
- - name : Validate composer.json and composer.lock
31
- run : composer validate
32
-
33
- - name : Cache Composer packages
34
- id : composer-cache
35
- uses : actions/cache@v2
36
- with :
37
- path : vendor
38
- key : ${{ runner.os }}-phpv2-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
39
- restore-keys : |
40
- ${{ runner.os }}-phpv2-${{ matrix.php }}-
41
-
42
- - name : Install dependencies
43
- if : steps.composer-cache.outputs.cache-hit != 'true'
44
- run : |
45
- composer install
46
- composer dump
47
-
48
- - name : Run test phpunit
49
- run : composer test
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
+ extensions : gd
27
+
28
+ - name : Validate composer.json
29
+ run : composer validate
30
+
31
+ - name : Cache Composer packages
32
+ id : composer-cache
33
+ uses : actions/cache@v4
34
+ with :
35
+ path : vendor
36
+ key : ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
37
+ restore-keys : |
38
+ ${{ runner.os }}-php-${{ matrix.php }}-
39
+
40
+ - name : Install dependencies
41
+ if : steps.composer-cache.outputs.cache-hit != 'true'
42
+ run : |
43
+ composer install --no-interaction --no-progress
44
+ composer dump
45
+
46
+ - name : Run test phpunit
47
+ run : composer test
Original file line number Diff line number Diff line change 24
24
"prefer-stable" : true ,
25
25
"require-dev" : {
26
26
"friendsofphp/php-cs-fixer" : " ^3.4" ,
27
- "phpunit/phpunit" : " ^9.3" ,
27
+ "phpunit/phpunit" : " ^9.3|^10.0|^10.5 " ,
28
28
"phpstan/phpstan" : " ^1.2"
29
29
},
30
30
"autoload" : {
42
42
"style" : " vendor/bin/php-cs-fixer fix" ,
43
43
"analyse" : " vendor/bin/phpstan analyse"
44
44
}
45
- }
45
+ }
You can’t perform that action at this time.
0 commit comments