Skip to content

Commit

Permalink
add support to php 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppemorelli committed Oct 15, 2024
1 parent 7e2b8d3 commit 3fa2abb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ 7.4, 8.0 ]
php: [ 7.4, 8.0, 8.1, 8.2, 8.3 ]

env:
ES_URL: http://127.0.0.1:9200
Expand All @@ -30,6 +30,8 @@ jobs:
stack-version: 7.4.1

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -58,11 +60,11 @@ jobs:
- name: PHPUnit tests
run: vendor/bin/phpunit tests

roave_bc_check:
name: Roave BC Check
runs-on: ubuntu-latest
- name: Install roave/backward-compatibility-check.
run: |
# Install BC check tool in separate directory to avoid dependency conflicts
mkdir -p test-tools/bc-check
composer require --working-dir="test-tools/bc-check" roave/backward-compatibility-check --no-plugins
steps:
- uses: actions/checkout@v2
- name: Roave BC Check
uses: docker://nyholm/roave-bc-check-ga
- name: Run roave/backward-compatibility-check.
run: test-tools/bc-check/vendor/bin/roave-backward-compatibility-check --format=github-actions
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ concurrency framework.

- PHP 7.4
- PHP 8.0
- PHP 8.1
- PHP 8.2
- PHP 8.3

**Installation**

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A non-blocking ElasticSearch client for PHP based on Amp.",
"license": "MIT",
"require": {
"php": "~7.4.0|~8.0.0",
"php": "~7.4.0|~8.0.0|~8.1.0|~8.2.0|~8.3.0",
"ext-json": "*",
"amphp/http-client": "^4.5",
"amphp/amp": "^2.1"
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.7'

services:
php:
image: "php:8.0"
image: "php:8.3"
volumes:
- "./:/app"
working_dir: "/app"
Expand Down

0 comments on commit 3fa2abb

Please sign in to comment.