Skip to content

Commit eb3a57c

Browse files
committed
bumps
1 parent e5a8b22 commit eb3a57c

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,37 @@ jobs:
1414
name: Unit Tests (PHP ${{ matrix.php }})
1515
strategy:
1616
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
1919
steps:
2020
- uses: actions/checkout@v4
2121
- uses: actions/cache@v4
2222
with:
2323
path: vendor
2424
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
2826
with:
2927
php-version: ${{ matrix.php }}
3028
coverage: pcov
29+
- uses: php-actions/composer@v6
3130
- name: Run test suite
3231
run: vendor/bin/phpunit tests --coverage-text --coverage-filter src
3332

3433
static:
3534
name: Static Analysis
36-
runs-on: ubuntu-latest
35+
runs-on: ubuntu-24.04
3736
steps:
3837
- uses: actions/checkout@v4
3938
- uses: actions/cache@v4
4039
with:
4140
path: vendor
4241
key: vendor-${{ hashFiles('composer.json') }}
4342
- 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
4844

4945
format:
5046
name: Formatting
51-
runs-on: ubuntu-latest
47+
runs-on: ubuntu-24.04
5248
steps:
5349
- uses: actions/checkout@v4
5450
- uses: actions/cache@v4

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
}
1515
],
1616
"require": {
17-
"php": "^8.0"
17+
"php": "^8.2"
1818
},
1919
"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"
2323
},
2424
"autoload": {
2525
"files": [

tests/CodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function testSync(): void
1313
"VAR_" => "var"
1414
];
1515
$lines = file("src/microhtml.php");
16-
if(!$lines) {
16+
if (!$lines) {
1717
$this->assertTrue($lines);
1818
}
1919
foreach ($lines as $line) {

0 commit comments

Comments
 (0)