Add tests

This commit is contained in:
crazywhalecc
2025-02-06 11:38:19 +08:00
parent 715e4d00e7
commit 4f063fac80

View File

@@ -13,17 +13,18 @@ declare(strict_types=1);
// test php version // test php version
$test_php_version = [ $test_php_version = [
// '8.1', '8.1',
// '8.2', '8.2',
// '8.3', '8.3',
'8.4', '8.4',
]; ];
// test os (macos-13, macos-14, ubuntu-latest, windows-latest are available) // test os (macos-13, macos-14, ubuntu-latest, windows-latest are available)
$test_os = [ $test_os = [
'macos-13',
'macos-14', 'macos-14',
'ubuntu-latest', 'ubuntu-latest',
// 'windows-latest', 'windows-latest',
]; ];
// whether enable thread safe // whether enable thread safe
@@ -39,8 +40,8 @@ $prefer_pre_built = true;
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
$extensions = match (PHP_OS_FAMILY) { $extensions = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'dio', 'Linux', 'Darwin' => 'opentelemetry',
'Windows' => 'dio', 'Windows' => 'opentelemetry',
}; };
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`). // If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).