Skip to content

Commit 60b3a10

Browse files
authored
Add PHP 8.5 support
2 parents a99e784 + 54b48c1 commit 60b3a10

File tree

6 files changed

+34
-8
lines changed

6 files changed

+34
-8
lines changed

.github/workflows/docker/docker-compose.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,15 @@ services:
6666
environment:
6767
*db-environment
6868
volumes:
69-
*wp-volume
69+
*wp-volume
70+
php85:
71+
container_name: wonolog-php-85
72+
build:
73+
context: .
74+
dockerfile: ./php85/Dockerfile
75+
depends_on:
76+
- db
77+
environment:
78+
*db-environment
79+
volumes:
80+
*wp-volume
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM wordpress:cli-php8.5
2+
3+
USER root
4+
5+
RUN set -eux; apk update && apk add git
6+
7+
COPY install-composer.sh /usr/bin/install-composer.sh
8+
RUN chmod +x /usr/bin/install-composer.sh && /usr/bin/install-composer.sh && mv composer.phar /usr/local/bin/composer
9+
10+
COPY wait-for.sh /usr/bin/wait-for.sh
11+
RUN chmod +x /usr/bin/wait-for.sh
12+
13+
RUN git config --global --add safe.directory /var/www/html
14+
15+
WORKDIR /var/www/html

.github/workflows/php-integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
php-service: [ '81', '82', '83', '84' ]
25+
php-service: [ '81', '82', '83', '84', '85' ]
2626
dependency-versions: [ 'lowest', 'highest' ]
2727
steps:
2828
- name: Checkout

.github/workflows/php-static-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
if: ${{ (github.event_name != 'workflow_dispatch') || ((github.event.inputs.jobs == 'Run all') || (github.event.inputs.jobs == 'Run lint only')) }}
3333
strategy:
3434
matrix:
35-
php-version: ["8.1", "8.2", "8.3", "8.4"]
35+
php-version: ["8.1", "8.2", "8.3", "8.4", "8.5"]
3636
dependency-versions: ['highest', 'lowest']
3737
with:
3838
PHP_VERSION: ${{ matrix.php-version }}
@@ -48,7 +48,7 @@ jobs:
4848
uses: inpsyde/reusable-workflows/.github/workflows/static-analysis-php.yml@support_dependency_versions_in_static_analysis
4949
strategy:
5050
matrix:
51-
php-version: ["8.1", "8.2", "8.3", "8.4"]
51+
php-version: ["8.1", "8.2", "8.3", "8.4", "8.5"]
5252
dependency-versions: ["lowest", "highest"]
5353
with:
5454
PHP_VERSION: ${{ matrix.php-version }}

.github/workflows/php-unit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
php-versions: [ '8.1', '8.2', '8.3', '8.4' ]
25+
php-versions: [ '8.1', '8.2', '8.3', '8.4', '8.5' ]
2626
dependency-versions: ['highest', 'lowest']
2727

2828
steps:
@@ -33,7 +33,7 @@ jobs:
3333
uses: shivammathur/setup-php@v2
3434
with:
3535
php-version: ${{ matrix.php-versions }}
36-
ini-values: zend.assertions=1, error_reporting=${{ ((matrix.php-versions == '8.4') && 'E_ALL') || 'E_ALL & ~E_DEPRECATED' }}, display_errors=On
36+
ini-values: zend.assertions=1, error_reporting=${{ ((matrix.php-versions == '8.4' || matrix.php-versions == '8.5') && 'E_ALL') || 'E_ALL & ~E_DEPRECATED' }}, display_errors=On
3737
coverage: none
3838

3939
- name: Install Composer dependencies

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838
}
3939
],
4040
"require": {
41-
"php": ">=8.1 < 8.5",
41+
"php": ">=8.1 <= 8.5",
4242
"psr/log": "^2.0||^3.0",
4343
"wecodemore/wordpress-early-hook": "^1.3.0",
4444
"monolog/monolog": "^2.0||^3.0"
4545
},
4646
"require-dev": {
47-
"antecedent/patchwork": "^2.2.1",
47+
"antecedent/patchwork": "^2.2.3",
4848
"hamcrest/hamcrest-php": "^2.1.1",
4949
"brain/monkey": "^2.6.2",
5050
"mockery/mockery": "^1.6.12",

0 commit comments

Comments
 (0)