diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e998fe4..11b2900 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,20 +49,22 @@ jobs: strategy: fail-fast: false matrix: - php-version: ['8.2', '8.3', '8.4'] + php-version: ['8.2', '8.3', '8.4', '8.5'] + env: + # Magento 2.4.7 does not run on PHP 8.4 or 8.5; those versions get the lint and isolated checks only. + MAGENTO_UNIT: ${{ matrix.php-version == '8.2' || matrix.php-version == '8.3' }} steps: - uses: actions/checkout@v4 with: path: module - # Magento 2.4.7 does not run on PHP 8.4; that version gets the lint and isolated checks only. - uses: actions/checkout@v4 - if: matrix.php-version != '8.4' + if: env.MAGENTO_UNIT == 'true' with: repository: magento/magento2 ref: 2.4.7-p10 path: magento - uses: actions/checkout@v4 - if: matrix.php-version != '8.4' + if: env.MAGENTO_UNIT == 'true' with: repository: magento/inventory ref: 1.2.7-p10 @@ -80,14 +82,14 @@ jobs: find Api Block Console Controller Model Observer Plugin Setup Test view registration.php \( -name '*.php' -o -name '*.phtml' \) -print0 | xargs -0 -n1 php -l for test in Test/*.test.php; do php "$test"; done - name: Install Magento unit test dependencies - if: matrix.php-version != '8.4' + if: env.MAGENTO_UNIT == 'true' run: | cp -R ../inventory/InventoryApi ../inventory/InventorySalesApi ../magento/app/code/Magento/ mkdir -p ../magento/app/code/Hellotext ln -s "$GITHUB_WORKSPACE/module" ../magento/app/code/Hellotext/Tracking composer --working-dir=../magento install --no-interaction --prefer-dist --no-progress - name: Run PHPUnit against Magento 2.4.7-p10 - if: matrix.php-version != '8.4' + if: env.MAGENTO_UNIT == 'true' working-directory: magento run: vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist app/code/Hellotext/Tracking/Test/Unit diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b8ba2c..99e99a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.0.4 - 2026-11-14 + +- Allow PHP 8.5, required by Magento 2.4.9. + ## 1.0.3 - 2026-11-03 - Report the page section (homepage, product collection or product details) from Magento's route, so page views, product views and Webchat messages say where they happened. diff --git a/README.md b/README.md index 6d60ad4..f015e66 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ Connect your Magento store to Hellotext to track storefront activity and orders, ## Requirements -- Magento Open Source 2.4 (tested on 2.4.7) -- PHP 8.2, 8.3 or 8.4 +- Magento Open Source 2.4 (tested on 2.4.7 and 2.4.9) +- PHP 8.2, 8.3, 8.4 or 8.5 - Magento Inventory (MSI) is optional; without it, stock checks use Magento's default stock - An HTTPS storefront and a Magento API reachable by Hellotext diff --git a/composer.json b/composer.json index 4441a10..266d5ef 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "hellotext/magento", "description": "Connect Magento Open Source stores to Hellotext: storefront activity, customer identity, orders and catalog/customer import.", "type": "magento2-module", - "version": "1.0.3", + "version": "1.0.4", "license": "proprietary", "keywords": [ "magento", @@ -20,7 +20,7 @@ "docs": "https://github.com/hellotext/magento/blob/main/docs/getting-started.md" }, "require": { - "php": ">=8.2 <8.5", + "php": "~8.2.0||~8.3.0||~8.4.0||~8.5.0", "magento/framework": "^103.0", "magento/module-backend": "^102.0", "magento/module-catalog": "^104.0", diff --git a/etc/module.xml b/etc/module.xml index 597c443..e4ea8e7 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -3,7 +3,7 @@ xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> - +