mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
[ticket/16840] Add PHP 8.1 test
PHPBB3-16840
This commit is contained in:
parent
f836605ab8
commit
c64b6f0f9e
2 changed files with 5 additions and 11 deletions
12
.github/setup-webserver.sh
vendored
12
.github/setup-webserver.sh
vendored
|
@ -28,18 +28,12 @@ NGINX_PHP_CONF="$DIR/nginx-php.conf"
|
||||||
PHP_FPM_BIN="/usr/sbin/php-fpm$PHP_VERSION"
|
PHP_FPM_BIN="/usr/sbin/php-fpm$PHP_VERSION"
|
||||||
PHP_FPM_CONF="$DIR/php-fpm.conf"
|
PHP_FPM_CONF="$DIR/php-fpm.conf"
|
||||||
|
|
||||||
if [ "$PHP_VERSION" == '8.1' ]
|
if [ ! -f $PHP_FPM_BIN ] && [ -f "/usr/bin/php-fpm" ]
|
||||||
then
|
then
|
||||||
if [ -f "/usr/sbin/php-fpm8.0" ]
|
PHP_FPM_BIN="/usr/bin/php-fpm"
|
||||||
then
|
|
||||||
PHP_FPM_BIN="/usr/sbin/php-fpm8.0"
|
|
||||||
elif [ ! -f $PHP_FPM_BIN ] && [ -f "/usr/bin/php-fpm" ]
|
|
||||||
then
|
|
||||||
PHP_FPM_BIN="/usr/bin/php-fpm"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f $PHP_FPM_BIN ] && [ "$PHP_VERSION" != '8.1' ]
|
if [ ! -f $PHP_FPM_BIN ]
|
||||||
then
|
then
|
||||||
sudo apt-get install php$PHP_VERSION-fpm php$PHP_VERSION-cli \
|
sudo apt-get install php$PHP_VERSION-fpm php$PHP_VERSION-cli \
|
||||||
php$PHP_VERSION-curl php$PHP_VERSION-xml php$PHP_VERSION-mbstring \
|
php$PHP_VERSION-curl php$PHP_VERSION-xml php$PHP_VERSION-mbstring \
|
||||||
|
|
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
|
@ -128,8 +128,8 @@ jobs:
|
||||||
db: "mysql:8.0"
|
db: "mysql:8.0"
|
||||||
- php: '8.0'
|
- php: '8.0'
|
||||||
db: "mysql:5.7"
|
db: "mysql:5.7"
|
||||||
#- php: '8.1'
|
- php: '8.1'
|
||||||
# db: "mysql:5.7"
|
db: "mysql:5.7"
|
||||||
|
|
||||||
name: PHP ${{ matrix.php }} - ${{ matrix.db_alias != '' && matrix.db_alias || matrix.db }}
|
name: PHP ${{ matrix.php }} - ${{ matrix.db_alias != '' && matrix.db_alias || matrix.db }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue