Skip to content

Commit 75d19c8

Browse files
authored
Merge pull request #6 from youwe-petervanderwal/php-8.3-support
Add PHP 8.3 support
2 parents 7e2b8d3 + 937bad4 commit 75d19c8

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
php: [ 7.4, 8.0 ]
14+
php: [ 7.4, 8.0, 8.1, 8.2, 8.3 ]
1515

1616
env:
1717
ES_URL: http://127.0.0.1:9200
@@ -30,6 +30,8 @@ jobs:
3030
stack-version: 7.4.1
3131

3232
- uses: actions/checkout@v2
33+
with:
34+
fetch-depth: 0 # This is needed for Roave BC check
3335

3436
- name: Setup PHP
3537
uses: shivammathur/setup-php@v2
@@ -58,11 +60,11 @@ jobs:
5860
- name: PHPUnit tests
5961
run: vendor/bin/phpunit tests
6062

61-
roave_bc_check:
62-
name: Roave BC Check
63-
runs-on: ubuntu-latest
63+
- name: Install roave/backward-compatibility-check.
64+
run: |
65+
# Install BC check tool in separate directory to avoid dependency conflicts
66+
mkdir -p test-tools/bc-check
67+
composer require --working-dir="test-tools/bc-check" roave/backward-compatibility-check --no-plugins
6468
65-
steps:
66-
- uses: actions/checkout@v2
67-
- name: Roave BC Check
68-
uses: docker://nyholm/roave-bc-check-ga
69+
- name: Run roave/backward-compatibility-check.
70+
run: test-tools/bc-check/vendor/bin/roave-backward-compatibility-check --format=github-actions

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ concurrency framework.
99

1010
- PHP 7.4
1111
- PHP 8.0
12+
- PHP 8.1
13+
- PHP 8.2
14+
- PHP 8.3
1215

1316
**Installation**
1417

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "A non-blocking ElasticSearch client for PHP based on Amp.",
44
"license": "MIT",
55
"require": {
6-
"php": "~7.4.0|~8.0.0",
6+
"php": "~7.4.0|~8.0.0|~8.1.0|~8.2.0|~8.3.0",
77
"ext-json": "*",
88
"amphp/http-client": "^4.5",
99
"amphp/amp": "^2.1"

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.7'
22

33
services:
44
php:
5-
image: "php:8.0"
5+
image: "php:8.3"
66
volumes:
77
- "./:/app"
88
working_dir: "/app"

0 commit comments

Comments
 (0)