mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 13:23:05 +07:00
Specify PHP version when installing ast
This commit is contained in:
parent
a0f02c17c0
commit
d2241010ef
@ -70,7 +70,7 @@ describe('Extension tests', () => {
|
|||||||
'sudo $debconf_fix apt-get install -y php7.4-sqlite3'
|
'sudo $debconf_fix apt-get install -y php7.4-sqlite3'
|
||||||
);
|
);
|
||||||
expect(linux).toContain('remove_extension intl');
|
expect(linux).toContain('remove_extension intl');
|
||||||
expect(linux).toContain('sudo $debconf_fix apt-get install -y php-ast');
|
expect(linux).toContain('sudo $debconf_fix apt-get install -y php7.4-ast');
|
||||||
expect(linux).toContain('sudo $debconf_fix apt-get install -y php-uopz');
|
expect(linux).toContain('sudo $debconf_fix apt-get install -y php-uopz');
|
||||||
expect(linux).toContain('add_unstable_extension ast beta extension');
|
expect(linux).toContain('add_unstable_extension ast beta extension');
|
||||||
expect(linux).toContain('add_pdo_extension mysql');
|
expect(linux).toContain('add_pdo_extension mysql');
|
||||||
|
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -3052,8 +3052,8 @@ async function addExtensionLinux(extension_csv, version, pipe) {
|
|||||||
extension = extension.replace(/pdo[_-]|3/, '');
|
extension = extension.replace(/pdo[_-]|3/, '');
|
||||||
add_script += '\nadd_pdo_extension ' + extension;
|
add_script += '\nadd_pdo_extension ' + extension;
|
||||||
return;
|
return;
|
||||||
// match ast and uopz
|
// match uopz
|
||||||
case /^(ast|uopz)$/.test(extension):
|
case /^(uopz)$/.test(extension):
|
||||||
command = command_prefix + '-' + extension + pipe;
|
command = command_prefix + '-' + extension + pipe;
|
||||||
break;
|
break;
|
||||||
// match sqlite
|
// match sqlite
|
||||||
|
@ -295,8 +295,8 @@ export async function addExtensionLinux(
|
|||||||
extension = extension.replace(/pdo[_-]|3/, '');
|
extension = extension.replace(/pdo[_-]|3/, '');
|
||||||
add_script += '\nadd_pdo_extension ' + extension;
|
add_script += '\nadd_pdo_extension ' + extension;
|
||||||
return;
|
return;
|
||||||
// match ast and uopz
|
// match uopz
|
||||||
case /^(ast|uopz)$/.test(extension):
|
case /^(uopz)$/.test(extension):
|
||||||
command = command_prefix + '-' + extension + pipe;
|
command = command_prefix + '-' + extension + pipe;
|
||||||
break;
|
break;
|
||||||
// match sqlite
|
// match sqlite
|
||||||
|
Loading…
Reference in New Issue
Block a user