Skip to content

Commit

Permalink
Add support for PHP 8.4
Browse files Browse the repository at this point in the history
Also…

- Add Roave BC Check to CI
- Bump dev deps
- Bump CI Actions
- Make PHPUnit stricter
  • Loading branch information
gsteel committed Oct 30, 2024
1 parent 5770c72 commit 0474e57
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 16 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
name: PHPUnit Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: shivammathur/setup-php@2.30.2
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@2.31.1
with:
php-version: ${{ env.default_php }}
extensions: pcov
coverage: pcov
ini-values: pcov.enabled=1
- uses: "ramsey/composer-install@3.0.0"
- uses: ramsey/composer-install@3.0.0
- run: php ./vendor/bin/phpunit --coverage-clover=coverage.xml
# Env allows smoke tests to run against a real repository
env:
Expand All @@ -44,13 +44,13 @@ jobs:
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v4.1.1
- uses: shivammathur/setup-php@2.30.2
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@2.31.1
with:
php-version: ${{ env.default_php }}
ini-values: memory_limit=-1
extensions: ${{ env.php_extensions }}
- uses: "ramsey/composer-install@3.0.0"
- uses: ramsey/composer-install@3.0.0
with:
dependency-versions: "highest"
- run: composer global config bin-dir /usr/local/bin
Expand All @@ -62,12 +62,12 @@ jobs:
runs-on: "ubuntu-latest"

steps:
- uses: "actions/checkout@v4.1.1"
- uses: "shivammathur/setup-php@2.30.2"
- uses: "actions/checkout@v4"
- uses: shivammathur/setup-php@2.31.1
with:
coverage: "xdebug"
php-version: ${{ env.default_php }}
- uses: "ramsey/composer-install@3.0.0"
- uses: ramsey/composer-install@3.0.0
with:
dependency-versions: "highest"
- run: "vendor/bin/infection --configuration=infection-custom.json"
6 changes: 6 additions & 0 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ignore_php_platform_requirements": {
"8.4": true
},
"backwardCompatibilityCheck": true
}
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "~8.1 || ~8.2.0 || ~8.3",
"php": "~8.1 || ~8.2.0 || ~8.3 || ~8.4",
"ext-json": "*",
"php-http/discovery": "^1.14.1",
"psr/http-client": "^1.0",
Expand All @@ -26,15 +26,15 @@
"ext-curl": "*",
"doctrine/coding-standard": "^12.0",
"infection/infection": "^0.27.11",
"laminas/laminas-diactoros": "^3.3.1",
"laminas/laminas-diactoros": "^3.5.0",
"php-http/curl-client": "^2.3.2",
"phpunit/phpunit": "^10.5.19",
"phpunit/phpunit": "^10.5.38",
"psalm/plugin-phpunit": "^0.19.0",
"react/child-process": "^0.6.5",
"react/http": "^1.10",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.9.1",
"vimeo/psalm": "^5.23.1"
"squizlabs/php_codesniffer": "^3.10.3",
"vimeo/psalm": "^5.26.1"
},
"config": {
"sort-packages": true,
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
displayDetailsOnPhpunitDeprecations="true"
failOnWarning="true"
failOnNotice="true"
failOnDeprecation="true"
failOnPhpunitDeprecation="true"
cacheDirectory=".cache/phpunit">
<testsuites>
<testsuite name="Unit">
Expand Down

0 comments on commit 0474e57

Please sign in to comment.