File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 6
6
integration_test :
7
7
strategy :
8
8
matrix :
9
- php_version : [8.2, 8.3, 8.4]
9
+ php_version : [8.1, 8. 2, 8.3, 8.4]
10
10
testsuite : [general, brancher]
11
11
runs-on : ubuntu-latest
12
12
steps :
Original file line number Diff line number Diff line change @@ -94,8 +94,14 @@ COPY ./ci/build/files /
94
94
95
95
RUN curl -sS https://getcomposer.org/installer | php \
96
96
&& mv composer.phar /usr/local/bin/composer \
97
- && chmod +x /usr/local/bin/composer \
98
- && composer install --no-dev --optimize-autoloader --working-dir=/hypernode
97
+ && chmod +x /usr/local/bin/composer
98
+
99
+ # Remove dev dependencies from composer.json
100
+ RUN cd /hypernode && \
101
+ jq 'del(.["require-dev"])' composer.json > composer.tmp.json && \
102
+ cp composer.tmp.json composer.json
103
+
104
+ RUN composer install --no-dev --optimize-autoloader --working-dir=/hypernode --no-scripts --no-progress --no-interaction
99
105
100
106
RUN bash /hypernode/ci/compile.sh
101
107
Original file line number Diff line number Diff line change 10
10
export IMAGE_OS=" buster"
11
11
fi
12
12
13
+ if [[ " ${PHP_VERSION:- 8.2} " == " 8.0" || " ${PHP_VERSION:- 8.2} " == " 8.1" ]]; then
14
+ export MAGENTO_VERSION=" 2.4.6-p10"
15
+ else
16
+ export MAGENTO_VERSION=" 2.4.8"
17
+ fi
18
+
13
19
# Handy aliases
14
20
HN=" docker-compose exec -T hypernode"
15
21
DP=" docker-compose exec -e GITHUB_WORKFLOW -T deploy"
@@ -64,7 +70,7 @@ end_task
64
70
65
71
begin_task " Setting Magento 2"
66
72
# Create working initial Magento install on the Hypernode container
67
- $HN composer create-project --repository=https://mirror.mage-os.org/ magento/project-community-edition:2.4.8 /data/web/magento2
73
+ $HN composer create-project --repository=https://mirror.mage-os.org/ magento/project-community-edition:${MAGENTO_VERSION :- 2.4.8} /data/web/magento2
68
74
echo " Waiting for MySQL to be available on the Hypernode container"
69
75
$HN bash -c " until mysql -e 'select 1' ; do sleep 1; done"
70
76
install_magento
You can’t perform that action at this time.
0 commit comments