Skip to content

Commit cfbf1ba

Browse files
authored
Merge pull request #36 from 123inkt/Update-package-versions
Update package versions
2 parents f5f8225 + 5a6241c commit cfbf1ba

File tree

4 files changed

+26
-18
lines changed

4 files changed

+26
-18
lines changed

.github/workflows/test.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@ permissions:
1111

1212
jobs:
1313
test:
14-
name: PHP ${{ matrix.php-versions }} Test ${{ matrix.composer-flags }}
14+
name: PHP ${{ matrix.php-versions }} - Symfony ${{ matrix.symfony }} - Test ${{ matrix.composer-flags }}
15+
env:
16+
SYMFONY_REQUIRE: ${{ matrix.symfony }}
1517
runs-on: ubuntu-latest
1618
strategy:
1719
matrix:
18-
php-versions: ['7.4', '8.0', '8.1', '8.2']
19-
composer-flags: ['', '--prefer-lowest']
20+
php-versions: [ '8.1', '8.2', '8.3' ]
21+
symfony: [ '^6.2', '^7.0' ]
22+
composer-flags: [ '', '--prefer-lowest' ]
23+
exclude:
24+
- php-versions: 8.1
25+
symfony: '^7.0'
2026
steps:
2127
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
2228

@@ -26,6 +32,9 @@ jobs:
2632
php-version: ${{ matrix.php-versions }}
2733
coverage: none
2834

35+
- name: Add symfony flex
36+
run: composer global config --no-interaction allow-plugins.symfony/flex true && composer global require symfony/flex
37+
2938
- name: Validate composer.json and composer.lock
3039
run: composer validate
3140

@@ -65,7 +74,7 @@ jobs:
6574
- name: Setup PHP
6675
uses: shivammathur/setup-php@v2
6776
with:
68-
php-version: 7.4
77+
php-version: 8.1
6978
coverage: none
7079

7180
- name: Install dependencies

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.4-8892BF)](https://php.net/)
2-
![Run tests](https://github.com/123inkt/phpunit-file-coverage-inspection/workflows/Run%20checks/badge.svg)
1+
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%208.1-8892BF)](https://php.net/)
2+
![Run tests](https://github.com/123inkt/phpunit-file-coverage-inspection/actions/workflows/test.yml/badge.svg)
33

44
# PHPUnit coverage inspection
55
A tool to allow code coverage rules be defined per file. Set a minimum coverage threshold for every file and configure

composer.json

+10-11
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,29 @@
2424
},
2525
"bin": ["bin/phpfci"],
2626
"require": {
27-
"php": ">=7.4",
27+
"php": ">=8.1",
2828
"ext-dom": "*",
2929
"ext-json": "*",
3030
"ext-libxml": "*",
3131
"ext-xmlwriter": "*",
32-
"symfony/console": "^5.1 || ^6.0",
33-
"symfony/polyfill-php80": "^1.24"
32+
"symfony/console": "^6.2 || ^7.0"
3433
},
3534
"require-dev": {
3635
"digitalrevolution/accessorpair-constraint": ">= 2.1.7",
3736
"roave/security-advisories": "dev-latest",
38-
"squizlabs/php_codesniffer": "^3.6",
39-
"phpmd/phpmd": "@stable",
40-
"phpunit/phpunit": "^9.5",
41-
"phpstan/phpstan": "^1.4",
42-
"phpstan/phpstan-phpunit": "^1.0",
43-
"phpstan/phpstan-strict-rules": "^1.1",
44-
"phpstan/extension-installer": "^1.1",
37+
"squizlabs/php_codesniffer": "^3.7",
38+
"phpmd/phpmd": "^2.14",
39+
"phpunit/phpunit": "^9.6",
40+
"phpstan/phpstan": "^1.10",
41+
"phpstan/phpstan-phpunit": "^1.3",
42+
"phpstan/phpstan-strict-rules": "^1.5",
43+
"phpstan/extension-installer": "^1.3",
4544
"mikey179/vfsstream": "^1.6.7"
4645
},
4746
"scripts": {
4847
"check": ["@check:phpstan", "@check:phpmd", "@check:phpcs"],
4948
"check:phpstan": "phpstan analyse",
50-
"check:phpmd": "phpmd src,tests text phpmd.xml.dist --suffixes=php",
49+
"check:phpmd": "phpmd src,tests text phpmd.xml.dist --suffixes php",
5150
"check:phpcs": "phpcs src tests",
5251
"fix": "@fix:phpcbf",
5352
"fix:phpcbf": "phpcbf src tests",

phpunit.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
forceCoversAnnotation="true"
66
failOnRisky="true"

0 commit comments

Comments
 (0)