mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 02:10:09 +08:00
test: allow specifying php extensions in workflow
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
parent
8c0a14aff2
commit
b0b47a0888
11
.github/workflows/REUSABLE_backend.yml
vendored
11
.github/workflows/REUSABLE_backend.yml
vendored
|
@ -26,6 +26,13 @@ on:
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: '["7.3", "7.4", "8.0", "8.1"]'
|
default: '["7.3", "7.4", "8.0", "8.1"]'
|
||||||
|
|
||||||
|
php_extensions:
|
||||||
|
description: PHP extensions to install.
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
default: 'curl, dom, gd, json, mbstring, openssl, pdo_mysql, tokenizer, zip'
|
||||||
|
|
||||||
db_versions:
|
db_versions:
|
||||||
description: Versions of databases to test with. Should be array of strings encoded as JSON array
|
description: Versions of databases to test with. Should be array of strings encoded as JSON array
|
||||||
type: string
|
type: string
|
||||||
|
@ -106,7 +113,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php }}
|
php-version: ${{ matrix.php }}
|
||||||
coverage: xdebug
|
coverage: xdebug
|
||||||
extensions: curl, dom, gd, json, mbstring, openssl, pdo_mysql, tokenizer, zip
|
extensions: ${{ inputs.php_extensions }}
|
||||||
tools: phpunit, composer:v2
|
tools: phpunit, composer:v2
|
||||||
ini-values: ${{ inputs.php_ini_values }}
|
ini-values: ${{ inputs.php_ini_values }}
|
||||||
|
|
||||||
|
@ -158,7 +165,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php }}
|
php-version: ${{ matrix.php }}
|
||||||
coverage: xdebug
|
coverage: xdebug
|
||||||
extensions: curl, dom, gd, json, mbstring, openssl, pdo_mysql, tokenizer, zip
|
extensions: ${{ inputs.php_extensions }}
|
||||||
tools: phpunit, composer:v2
|
tools: phpunit, composer:v2
|
||||||
ini-values: ${{ inputs.php_ini_values }}
|
ini-values: ${{ inputs.php_ini_values }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user