Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- "8.2"
- "8.3"
- "8.4"
- "8.5"
node_version:
- 16
- 18
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
integration_test:
strategy:
matrix:
php_version: [8.1, 8.2, 8.3, 8.4]
php_version: [8.1, 8.2, 8.3, 8.4, 8.5]
testsuite: [general, brancher]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -34,6 +34,7 @@ jobs:
code_quality:
strategy:
matrix:
# PHP 8.5 is not yet compatible with our current version of deployer
php_version: [8.1, 8.2, 8.3, 8.4]
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 5 additions & 1 deletion ci/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ RUN apt-get install -y --no-install-recommends \
php${PHP_VERSION}-mbstring \
php${PHP_VERSION}-mysql \
php${PHP_VERSION}-odbc \
php${PHP_VERSION}-opcache \
php${PHP_VERSION}-pgsql \
php${PHP_VERSION}-pspell \
php${PHP_VERSION}-readline \
Expand All @@ -81,6 +80,11 @@ RUN apt-get install -y --no-install-recommends \
php${PHP_VERSION}-xml \
php${PHP_VERSION}-zip

# Since PHP 8.5 opcache is compiled into PHP itself and no separate package exists
RUN if dpkg --compare-versions "${PHP_VERSION}" lt "8.5"; then \
apt-get install -y --no-install-recommends php${PHP_VERSION}-opcache; \
fi

# Confirm NodeJS & NPM are installed
RUN node -v && npm -v

Expand Down
14 changes: 13 additions & 1 deletion ci/test/run-general.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,24 @@ set -e
set -x

export PHP_VERSION_SHORT=$(echo "${PHP_VERSION:-8.2}" | sed 's/\.//')
if [[ "${PHP_VERSION:-8.2}" == "8.4" ]]; then
if [[ "${PHP_VERSION:-8.2}" == "8.4" || "${PHP_VERSION:-8.2}" == "8.5" ]]; then
export IMAGE_OS="bookworm"
else
export IMAGE_OS="buster"
fi

if [[ "${PHP_VERSION:-8.2}" == "8.5" ]]; then
# Magento 2.4.9 only supports MySQL 8.4, and there is no mysql57 image for PHP 8.5
export MYSQL_VERSION_SHORT="84"
else
export MYSQL_VERSION_SHORT="57"
fi

if [[ "${PHP_VERSION:-8.2}" == "8.1" ]]; then
export MAGENTO_VERSION="2.4.6-p10"
elif [[ "${PHP_VERSION:-8.2}" == "8.5" ]]; then
# Magento 2.4.9 is the first release compatible with PHP 8.5
export MAGENTO_VERSION="2.4.9"
else
export MAGENTO_VERSION="2.4.8"
fi
Expand Down Expand Up @@ -81,6 +91,8 @@ $HN /data/web/magento2/bin/magento app:config:dump scopes themes
echo "Waiting for SSH to be available on the Hypernode container"
chmod 0600 ci/test/.ssh/id_rsa
chmod 0600 ci/test/.ssh/authorized_keys
# Magento 2.4.9 creates a root-owned var/cache/symfony that the app user below cannot read
$HN chown -R app:app /data/web/magento2
$DP rsync -a app@hypernode:/data/web/magento2/ /web
$DP rsync -a /config/ /web
$DP rm /web/app/etc/env.php
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
hypernode:
container_name: hypernode
image: docker.hypernode.com/byteinternet/hypernode-${IMAGE_OS:-buster}-docker-php${PHP_VERSION_SHORT:-81}-mysql57
image: docker.hypernode.com/byteinternet/hypernode-${IMAGE_OS:-buster}-docker-php${PHP_VERSION_SHORT:-81}-mysql${MYSQL_VERSION_SHORT:-57}
volumes:
- ./ci/test/.ssh:/root/.ssh
ports:
Expand Down
Loading