Skip to content

Commit

Permalink
bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Aug 31, 2024
1 parent e5a8b22 commit eb3a57c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,37 @@ jobs:
name: Unit Tests (PHP ${{ matrix.php }})
strategy:
matrix:
php: ['8.1', '8.2', '8.3', '8.4']
runs-on: ubuntu-latest
php: ['8.2', '8.3', '8.4']
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: vendor
key: vendor-${{ hashFiles('composer.json') }}
- uses: php-actions/composer@v6
- name: Set up PHP
uses: shivammathur/setup-php@master
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov
- uses: php-actions/composer@v6
- name: Run test suite
run: vendor/bin/phpunit tests --coverage-text --coverage-filter src

static:
name: Static Analysis
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: vendor
key: vendor-${{ hashFiles('composer.json') }}
- uses: php-actions/composer@v6
- uses: php-actions/phpstan@v3
with:
path: src
level: 5
- run: ./vendor/bin/phpstan analyse src --level 5

format:
name: Formatting
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
}
],
"require": {
"php": "^8.0"
"php": "^8.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer" : "^3.12",
"phpunit/phpunit": "^9.0",
"phpstan/phpstan": "^1.9"
"friendsofphp/php-cs-fixer" : "^3.64",
"phpunit/phpunit": "^11.0",
"phpstan/phpstan": "^1.12"
},
"autoload": {
"files": [
Expand Down
2 changes: 1 addition & 1 deletion tests/CodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function testSync(): void
"VAR_" => "var"
];
$lines = file("src/microhtml.php");
if(!$lines) {
if (!$lines) {
$this->assertTrue($lines);
}
foreach ($lines as $line) {
Expand Down

0 comments on commit eb3a57c

Please sign in to comment.