File tree Expand file tree Collapse file tree 3 files changed +12
-16
lines changed Expand file tree Collapse file tree 3 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -14,41 +14,37 @@ jobs:
14
14
name : Unit Tests (PHP ${{ matrix.php }})
15
15
strategy :
16
16
matrix :
17
- php : ['8.1', '8. 2', '8.3', '8.4']
18
- runs-on : ubuntu-latest
17
+ php : ['8.2', '8.3', '8.4']
18
+ runs-on : ubuntu-24.04
19
19
steps :
20
20
- uses : actions/checkout@v4
21
21
- uses : actions/cache@v4
22
22
with :
23
23
path : vendor
24
24
key : vendor-${{ hashFiles('composer.json') }}
25
- - uses : php-actions/composer@v6
26
- - name : Set up PHP
27
- uses : shivammathur/setup-php@master
25
+ - uses : shivammathur/setup-php@v2
28
26
with :
29
27
php-version : ${{ matrix.php }}
30
28
coverage : pcov
29
+ - uses : php-actions/composer@v6
31
30
- name : Run test suite
32
31
run : vendor/bin/phpunit tests --coverage-text --coverage-filter src
33
32
34
33
static :
35
34
name : Static Analysis
36
- runs-on : ubuntu-latest
35
+ runs-on : ubuntu-24.04
37
36
steps :
38
37
- uses : actions/checkout@v4
39
38
- uses : actions/cache@v4
40
39
with :
41
40
path : vendor
42
41
key : vendor-${{ hashFiles('composer.json') }}
43
42
- uses : php-actions/composer@v6
44
- - uses : php-actions/phpstan@v3
45
- with :
46
- path : src
47
- level : 5
43
+ - run : ./vendor/bin/phpstan analyse src --level 5
48
44
49
45
format :
50
46
name : Formatting
51
- runs-on : ubuntu-latest
47
+ runs-on : ubuntu-24.04
52
48
steps :
53
49
- uses : actions/checkout@v4
54
50
- uses : actions/cache@v4
Original file line number Diff line number Diff line change 14
14
}
15
15
],
16
16
"require" : {
17
- "php" : " ^8.0 "
17
+ "php" : " ^8.2 "
18
18
},
19
19
"require-dev" : {
20
- "friendsofphp/php-cs-fixer" : " ^3.12 " ,
21
- "phpunit/phpunit" : " ^9 .0" ,
22
- "phpstan/phpstan" : " ^1.9 "
20
+ "friendsofphp/php-cs-fixer" : " ^3.64 " ,
21
+ "phpunit/phpunit" : " ^11 .0" ,
22
+ "phpstan/phpstan" : " ^1.12 "
23
23
},
24
24
"autoload" : {
25
25
"files" : [
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public function testSync(): void
13
13
"VAR_ " => "var "
14
14
];
15
15
$ lines = file ("src/microhtml.php " );
16
- if (!$ lines ) {
16
+ if (!$ lines ) {
17
17
$ this ->assertTrue ($ lines );
18
18
}
19
19
foreach ($ lines as $ line ) {
You can’t perform that action at this time.
0 commit comments