Skip to content

Commit

Permalink
Merge branch 'master' into fixed_webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess authored Oct 29, 2024
2 parents 1399f72 + a895209 commit 358faed
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 16 deletions.
3 changes: 1 addition & 2 deletions .github/actions/dockerbuild/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ runs:
run: |
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}-php" >> ${GITHUB_ENV}
- if: ${{ inputs.php-version >= 7.4 }}
shell: 'bash'
- shell: 'bash'
run: |
echo "GD_OPTIONS=--with-freetype --with-jpeg" >> ${GITHUB_ENV}
echo "EXT_INSTALL_ARGS=gd zip mysqli pgsql opcache" >> ${GITHUB_ENV}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/dockerbuild-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4-rc' ]

steps:
- name: downcase REPO
run: |
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}-php" >> ${GITHUB_ENV}
- if: ${{ matrix.php >= 7.4 }}
run: |
- run: |
echo "GD_OPTIONS=--with-freetype --with-jpeg" >> ${GITHUB_ENV}
echo "EXT_INSTALL_ARGS=gd zip mysqli pgsql opcache" >> ${GITHUB_ENV}
echo "APCU=apcu" >> ${GITHUB_ENV}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dockerbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4-rc' ]

steps:
- name: Checkout
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- 'test/front_login'
- 'test/front_guest'
- 'test/admin'
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4-rc' ]
db: [ mysql, pgsql ]
steps:
- name: Checkout
Expand Down Expand Up @@ -60,7 +60,11 @@ jobs:
echo "COMPOSE_FILE=docker-compose.yml:docker-compose.${DB}.yml:docker-compose.dev.yml" >> $GITHUB_ENV
echo "IMAGE_NAME=${OWNER,,}/ec-cube2-php" >> $GITHUB_ENV
if [ $EVENT_NAME = "pull_request" ]; then
echo "TAG=${PHP}-apache-${BASE_REF}" >> $GITHUB_ENV
if [ -n $DOCKER_METADATA_OUTPUT_VERSION ]; then
echo "TAG=${DOCKER_METADATA_OUTPUT_VERSION}" >> $GITHUB_ENV
else
echo "TAG=${PHP}-apache-${BASE_REF}" >> $GITHUB_ENV
fi
else
echo "TAG=${PHP}-apache-${REF_NAME}" >> $GITHUB_ENV
fi
Expand Down Expand Up @@ -123,7 +127,7 @@ jobs:
fail-fast: false
matrix:
db: [ 'pgsql', 'mysql' ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4-rc' ]
include:
- db: mysql
dbport: '3306'
Expand Down Expand Up @@ -158,7 +162,11 @@ jobs:
echo "COMPOSE_FILE=docker-compose.yml:docker-compose.${DB}.yml:docker-compose.dev.yml" >> $GITHUB_ENV
echo "IMAGE_NAME=${OWNER,,}/ec-cube2-php" >> $GITHUB_ENV
if [ $EVENT_NAME = "pull_request" ]; then
echo "TAG=${PHP}-apache-${BASE_REF}" >> $GITHUB_ENV
if [ -n $DOCKER_METADATA_OUTPUT_VERSION ]; then
echo "TAG=${DOCKER_METADATA_OUTPUT_VERSION}" >> $GITHUB_ENV
else
echo "TAG=${PHP}-apache-${BASE_REF}" >> $GITHUB_ENV
fi
else
echo "TAG=${PHP}-apache-${REF_NAME}" >> $GITHUB_ENV
fi
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ jobs:
echo "COMPOSE_FILE=docker-compose.yml:docker-compose.pgsql.yml:docker-compose.dev.yml" >> $GITHUB_ENV
echo "IMAGE_NAME=${OWNER,,}/ec-cube2-php" >> $GITHUB_ENV
if [ $EVENT_NAME = "pull_request" ]; then
echo "TAG=8.3-apache-${BASE_REF}" >> $GITHUB_ENV
if [ -n $DOCKER_METADATA_OUTPUT_VERSION ]; then
echo "TAG=${DOCKER_METADATA_OUTPUT_VERSION}" >> $GITHUB_ENV
else
echo "TAG=8.3-apache-${BASE_REF}" >> $GITHUB_ENV
fi
else
echo "TAG=8.3-apache-${REF_NAME}" >> $GITHUB_ENV
fi
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-22.04 ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4-rc' ]
db: [ mysql, pgsql ]

steps:
Expand Down Expand Up @@ -53,7 +53,11 @@ jobs:
echo "COMPOSE_FILE=docker-compose.yml:docker-compose.${DB}.yml:docker-compose.dev.yml" >> $GITHUB_ENV
echo "IMAGE_NAME=${OWNER,,}/ec-cube2-php" >> $GITHUB_ENV
if [ $EVENT_NAME = "pull_request" ]; then
echo "TAG=${PHP}-apache-${BASE_REF}" >> $GITHUB_ENV
if [ -n $DOCKER_METADATA_OUTPUT_VERSION ]; then
echo "TAG=${DOCKER_METADATA_OUTPUT_VERSION}" >> $GITHUB_ENV
else
echo "TAG=${PHP}-apache-${BASE_REF}" >> $GITHUB_ENV
fi
else
echo "TAG=${PHP}-apache-${REF_NAME}" >> $GITHUB_ENV
fi
Expand Down
4 changes: 2 additions & 2 deletions html/install/templates/step4.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<input type="hidden" name="senddata_cube_ver" value="<!--{$tpl_cube_ver}-->" />
<input type="hidden" name="senddata_php_ver" value="<!--{$tpl_php_ver}-->" />
<input type="hidden" name="senddata_db_ver" value="<!--{$tpl_db_ver}-->" />
<input type="hidden" name="senddata_os_type" value="<!--{""|php_uname|h}--> <!--{$smarty.server.SERVER_SOFTWARE|h}-->" />
<input type="hidden" name="senddata_os_type" value="<!--{php_uname()|h}--> <!--{$smarty.server.SERVER_SOFTWARE|h}-->" />
<!--{foreach key=key item=item from=$arrHidden}-->
<input type="hidden" name="<!--{$key}-->" value="<!--{$item|h}-->" />
<!--{/foreach}-->
Expand All @@ -48,7 +48,7 @@
<li><span class="bold">EC-CUBEバージョン:</span><!--{$tpl_cube_ver}--></li>
<li><span class="bold">PHP情報:</span><!--{$tpl_php_ver}--></li>
<li><span class="bold">DB情報:</span><!--{$tpl_db_ver}--></li>
<li><span class="bold">OS情報:</span><!--{""|php_uname|h}--> <!--{$smarty.server.SERVER_SOFTWARE|h}--></li>
<li><span class="bold">OS情報:</span><!--{php_uname()|h}--> <!--{$smarty.server.SERVER_SOFTWARE|h}--></li>
</ul>
</div>
<div class="result-info02">
Expand Down
7 changes: 6 additions & 1 deletion tests/class/fixtures/server/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

require __DIR__.'/../../../require.php';

error_reporting(-1);
if (PHP_VERSION_ID >= 80400) {
// XXX PHP8.4.0+で MobileDetect 3.74.x が E_DEPRECATED を発生させるため
error_reporting(E_ALL & ~E_DEPRECATED);
} else {
error_reporting(E_ALL);
}
ini_set('display_errors', '1');

header_remove('X-Powered-By');
Expand Down

0 comments on commit 358faed

Please sign in to comment.