Skip to content

Commit 5cc420d

Browse files
authored
PHP 8.4 and some dependency updates (#64)
1 parent 8aeb123 commit 5cc420d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1351
-826
lines changed

Diff for: .github/workflows/integration-tests.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
operating-system: ['ubuntu-latest', 'macos-latest', 'windows-latest']
25-
php-versions: [ '8.1', '8.2', '8.3' ]
25+
php-versions: [ '8.1', '8.2', '8.3', '8.4' ]
2626
composer-versions: [ '2.2', 'v2' ]
2727
steps:
2828
- uses: actions/checkout@v3
@@ -36,10 +36,6 @@ jobs:
3636
- name: Validate composer.json
3737
run: composer validate --strict
3838

39-
- name: Remove lock file
40-
run: rm composer.lock
41-
if: matrix.php-versions == '8.0'
42-
4339
- name: Install dependencies
4440
run: composer install --prefer-dist --no-progress
4541

Diff for: .github/workflows/unit-tests.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
operating-system: ['ubuntu-latest', 'windows-latest', 'macos-latest']
20-
php-versions: [ '8.1', 'latest' ]
20+
php-versions: [ '8.1', '8.4' ]
2121
steps:
2222
- uses: actions/checkout@v3
2323

@@ -29,19 +29,20 @@ jobs:
2929
- name: Validate composer.json
3030
run: composer validate --strict
3131

32-
- name: Remove lock file
33-
run: rm composer.lock
34-
if: matrix.php-versions == '8.0'
35-
3632
- name: Install dependencies
3733
run: composer install --prefer-dist --no-progress
3834

3935
- name: Run unit tests
36+
run: ./vendor/bin/phpunit --testsuite=Unit
37+
if: (matrix.php-versions == '8.4' && matrix.operating-system == 'ubuntu-latest') == false
38+
39+
- name: Run unit tests with coverage
4040
run: ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml --testsuite=Unit
41+
if: matrix.php-versions == '8.4' && matrix.operating-system == 'ubuntu-latest'
4142

4243
- name: Publish code coverage to codeclimate
4344
uses: paambaati/[email protected]
44-
if: matrix.php-versions == 'latest' && matrix.operating-system == 'ubuntu-latest'
45+
if: matrix.php-versions == '8.4' && matrix.operating-system == 'ubuntu-latest'
4546
env:
4647
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_REPORTER_ID }}
4748
with:

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/build
12
/vendor
23
.php-cs-fixer.cache
34
/.idea

Diff for: .php-cs-fixer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
$header = 'This file is part of the composer-link plugin.
2424
25-
Copyright (c) 2021-' . date('Y') . ' Sander Visser <[email protected]>.
25+
Created by: Sander Visser <[email protected]>.
2626
2727
For the full copyright and license information, please view the LICENSE.md
2828
file that was distributed with this source code.

Diff for: composer.json

+10-5
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"require-dev": {
2828
"composer/composer": "^2.2",
2929
"friendsofphp/php-cs-fixer": "^v3.15.0",
30-
"phpstan/phpstan": "^1.4",
31-
"phpunit/phpunit": "^9.6.3",
32-
"phpstan/phpstan-phpunit": "^1.1",
30+
"phpstan/phpstan": "^2.0",
31+
"phpunit/phpunit": "^10.5.38",
32+
"phpstan/phpstan-phpunit": "^2.0",
3333
"phpmd/phpmd": "^2.12",
34-
"phpstan/phpstan-strict-rules": "^1.1",
35-
"phpstan/phpstan-deprecation-rules": "^1.0"
34+
"phpstan/phpstan-strict-rules": "2.0",
35+
"phpstan/phpstan-deprecation-rules": "^2.0"
3636
},
3737
"extra": {
3838
"class": "ComposerLink\\Plugin"
@@ -43,5 +43,10 @@
4343
"test-integration": "./vendor/bin/phpunit --testsuite=Integration",
4444
"phpstan": "./vendor/bin/phpstan",
4545
"lint": "./vendor/bin/php-cs-fixer fix"
46+
},
47+
"config": {
48+
"platform": {
49+
"php": "8.1.0"
50+
}
4651
}
4752
}

0 commit comments

Comments
 (0)