From d754a18e406a7e20a9c407f1fd45364389d12cba Mon Sep 17 00:00:00 2001 From: MaurizioMoreo <51058637+MaurizioMoreo@users.noreply.github.com> Date: Fri, 19 May 2023 16:16:58 +0200 Subject: [PATCH] Update avro-php version (#75) Adds PHP 8.2 support --- .github/workflows/checks.yml | 33 +++++++++++++++++++++------------ Dockerfile | 1 + composer.json | 6 +++--- 3 files changed, 25 insertions(+), 15 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 7348966..be622c6 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -28,14 +28,17 @@ jobs: matrix: php: - - version: 7.4 - xdebug: 3.1.5 + version: '7.4' + xdebug: '3.1.5' - - version: 8.0 - xdebug: 3.1.5 + version: '8.0' + xdebug: '3.1.5' - - version: 8.1 - xdebug: 3.1.5 + version: '8.1' + xdebug: '3.1.5' + - + version: '8.2' + xdebug: '3.2.1' runs-on: ubuntu-20.04 steps: - @@ -79,22 +82,28 @@ jobs: matrix: php: - - version: 7.4 + version: '7.4' + composer: --prefer-lowest + - + version: '8.0' composer: --prefer-lowest - - version: 8.0 + version: '8.1' composer: --prefer-lowest - - version: 8.1 + version: '8.2' composer: --prefer-lowest - - version: 7.4 + version: '7.4' + composer: --prefer-stable + - + version: '8.0' composer: --prefer-stable - - version: 8.0 + version: '8.1' composer: --prefer-stable - - version: 8.1 + version: '8.2' composer: --prefer-stable steps: - diff --git a/Dockerfile b/Dockerfile index 664ce29..dfa0a36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \ && docker-php-source extract \ && docker-php-ext-configure zip \ && docker-php-ext-install zip \ + && apk add --update linux-headers \ && mkdir -p /usr/src/php/ext/xdebug \ && curl -fsSL https://github.com/xdebug/xdebug/archive/$XDEBUG_VERSION.tar.gz | tar xvz -C /usr/src/php/ext/xdebug --strip 1 \ && docker-php-ext-install xdebug \ diff --git a/composer.json b/composer.json index 3e39cef..f7ede28 100644 --- a/composer.json +++ b/composer.json @@ -23,11 +23,11 @@ } ], "require": { - "php": "^7.3|^8.0|^8.1", + "php": "^7.3|^8.0", "beberlei/assert": "^2.9.9|~3.0", - "flix-tech/confluent-schema-registry-api": "^7.6.0", + "flix-tech/confluent-schema-registry-api": "^8.0", "guzzlehttp/promises": "^1.4.0", - "flix-tech/avro-php": "^4.3.0", + "flix-tech/avro-php": "^5.0", "widmogrod/php-functional": "^6.0" }, "require-dev": {