From 5e579a192cf527d4373ff1f70ea96c61e459fd26 Mon Sep 17 00:00:00 2001 From: MaurizioMoreo <51058637+MaurizioMoreo@users.noreply.github.com> Date: Fri, 19 May 2023 08:07:55 +0200 Subject: [PATCH] Update flix-tech/avro-php (#75) This upgrades to the latest `flix-tech/avro-php` version and adds PHP 8 CI checks. --- .github/workflows/checks.yml | 33 +++++++++++++++++++++------------ Dockerfile | 1 + composer.json | 4 ++-- 3 files changed, 24 insertions(+), 14 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 810b475..62611c7 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 58b765b..2bb4204 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 058cefa..9c31353 100644 --- a/composer.json +++ b/composer.json @@ -11,14 +11,14 @@ } ], "require": { - "php": "^7.4|^8.0|^8.1", + "php": "^7.4|^8.0", "ext-curl": "*", "ext-json": "*", "guzzlehttp/guzzle": "^7.0", "guzzlehttp/promises": "^1.4.0", "guzzlehttp/psr7": "^1.7|^2.1", "beberlei/assert": "~2.7|~3.0", - "flix-tech/avro-php": "^4.3" + "flix-tech/avro-php": "^5.0" }, "require-dev": { "phpunit/phpunit": "^9.4.2",