File tree Expand file tree Collapse file tree 5 files changed +23
-29
lines changed Expand file tree Collapse file tree 5 files changed +23
-29
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ jobs:
18
18
ref : ${{ github.head_ref }}
19
19
20
20
# mtime needs to be restored for PHP-CS-Fixer cache to work correctly
21
- - name : Restore mtimes
22
- uses : weirdan /git-restore-mtime-action@master
21
+ - name : Restore timestamps
22
+ uses : chetan /git-restore-mtime-action@v2
23
23
24
24
- name : Setup PHP
25
25
uses : shivammathur/setup-php@v2
26
26
with :
27
- php-version : 8.2
27
+ php-version : 8.4
28
28
coverage : none
29
29
tools : cs2pr
30
30
env :
@@ -43,17 +43,11 @@ jobs:
43
43
restore-keys : |
44
44
${{ runner.os }}-composer-
45
45
46
- - name : Install composer dependencies -- step 1
47
- run : ' composer install --working-dir=tools/php-cs-fixer --no-interaction --no-progress --no-scripts'
48
-
49
- - name : Install composer dependencies -- step 2
50
- run : ' composer install --working-dir=tools/phpcs --no-interaction --no-progress --no-scripts'
51
-
52
46
- name : Retrieve PHP-CS-Fixer’s cache
53
47
uses : actions/cache@v4
54
48
with :
55
49
path : .php-cs-fixer.cache
56
- key : ${{ runner.os }}-php-cs-fixer-${{ hashFiles('.php-cs-fixer.php', '.phpcs/**/**' ) }}
50
+ key : ${{ runner.os }}-php-cs-fixer-${{ hashFiles('.php-cs-fixer.php') }}
57
51
restore-keys : |
58
52
${{ runner.os }}-php-cs-fixer-
59
53
73
67
- name : Fix detected PHP coding style issues (if any)
74
68
if : ${{ steps.lint_php.outcome == 'failure' }}
75
69
id : fix_php
76
- run : composer php:fix
70
+ run : composer cs:check
77
71
continue-on-error : true
78
72
79
73
- name : Commit PHP code-style fixes (if any)
Original file line number Diff line number Diff line change 30
30
composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_4_LICENSE_KEY }}"
31
31
composer install -n --prefer-dist
32
32
33
+ - name : Restore timestamps
34
+ uses : chetan/git-restore-mtime-action@v2
35
+
36
+ - run : composer global require cpx/cpx
37
+
33
38
- name : Run Psalm
34
- run : ./vendor/bin/ psalm --shepherd
39
+ run : composer psalm -- --shepherd
Original file line number Diff line number Diff line change 9
9
fail-fast : true
10
10
matrix :
11
11
php : [ 8.3, 8.2 ]
12
- laravel : [ 10 .* ]
12
+ laravel : [ 11 .* ]
13
13
dependency-version : [ prefer-stable ]
14
14
include :
15
- - laravel : 10 .*
16
- testbench : 8 .*
15
+ - laravel : 11 .*
16
+ testbench : 9 .*
17
17
18
18
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
19
19
@@ -54,14 +54,14 @@ jobs:
54
54
- name : Setup Node.js
55
55
uses : actions/setup-node@v4
56
56
with :
57
- node-version : 20
57
+ node-version : 22
58
58
59
59
- name : Cache yarn dependencies
60
60
uses : actions/cache@v4
61
61
id : npm-node_modules-cache
62
62
with :
63
63
path : node_modules
64
- key : npm-${{ hashFiles('package.json') }}-node-20
64
+ key : npm-${{ hashFiles('package.json') }}-node-22
65
65
66
66
- name : Compile assets
67
67
run : npm install && npm run prod
Original file line number Diff line number Diff line change 12
12
],
13
13
"require" : {
14
14
"php" : " ^8.1" ,
15
- "laravel/nova" : " ^4.20"
15
+ "laravel/nova" : " ^4.20 || ^5.0 "
16
16
},
17
17
"require-dev" : {
18
18
"interaction-design-foundation/coding-standard" : " ^0.3.0" ,
19
- "orchestra/testbench" : " ^8.3" ,
20
- "phpunit/phpunit" : " ^10.5 || ^11.0" ,
21
- "vimeo/psalm" : " ^5.22"
19
+ "orchestra/testbench-core" : " ^8.30 || ^9.7" ,
20
+ "phpunit/phpunit" : " ^11.0"
22
21
},
23
22
"repositories" : [
24
23
{
59
58
"cs" : " @cs:fix" ,
60
59
"cs:check" : " phpcs -p -s --colors --report-full --report-summary" ,
61
60
"cs:fix" : " phpcbf -p --colors" ,
62
- "psalm" : " vendor/bin/psalm" ,
61
+ "psalm" : " cpx psalm" ,
62
+ "sa" : " @psalm" ,
63
+ "sa:bl" : " cpx psalm --set-baseline=psalm-baseline.xml --long-progress --threads=1" ,
63
64
"test" : " phpunit --colors=always"
64
65
}
65
66
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <files psalm-version =" 5.22.2@d768d914152dbbf3486c36398802f74e80cfde48" >
3
- <file src =" src/HtmlCard.php" >
4
- <PropertyNotSetInConstructor >
5
- <code ><![CDATA[ HtmlCard]]> </code >
6
- </PropertyNotSetInConstructor >
7
- </file >
8
- </files >
2
+ <files psalm-version =" 5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0" />
You can’t perform that action at this time.
0 commit comments