mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-23 04:11:06 +07:00
Merge pull request #481 from jrfnl/feature/update-phive-config
Update Phive configuration
This commit is contained in:
commit
ca910e5511
@ -201,6 +201,7 @@ describe('Tools tests', () => {
|
|||||||
version | php_version | os_version | script
|
version | php_version | os_version | script
|
||||||
${'latest'} | ${'7.4'} | ${'linux'} | ${'add_tool https://phar.io/releases/phive.phar phive'}
|
${'latest'} | ${'7.4'} | ${'linux'} | ${'add_tool https://phar.io/releases/phive.phar phive'}
|
||||||
${'1.2.3'} | ${'7.4'} | ${'darwin'} | ${'add_tool https://github.com/phar-io/phive/releases/download/1.2.3/phive-1.2.3.phar phive'}
|
${'1.2.3'} | ${'7.4'} | ${'darwin'} | ${'add_tool https://github.com/phar-io/phive/releases/download/1.2.3/phive-1.2.3.phar phive'}
|
||||||
|
${'1.2.3'} | ${'7.2'} | ${'win32'} | ${'Add-Tool https://github.com/phar-io/phive/releases/download/0.14.5/phive-0.14.5.phar phive'}
|
||||||
${'1.2.3'} | ${'7.1'} | ${'win32'} | ${'Add-Tool https://github.com/phar-io/phive/releases/download/0.13.5/phive-0.13.5.phar phive'}
|
${'1.2.3'} | ${'7.1'} | ${'win32'} | ${'Add-Tool https://github.com/phar-io/phive/releases/download/0.13.5/phive-0.13.5.phar phive'}
|
||||||
${'latest'} | ${'5.6'} | ${'win32'} | ${'Add-Tool https://github.com/phar-io/phive/releases/download/0.12.1/phive-0.12.1.phar phive'}
|
${'latest'} | ${'5.6'} | ${'win32'} | ${'Add-Tool https://github.com/phar-io/phive/releases/download/0.12.1/phive-0.12.1.phar phive'}
|
||||||
${'latest'} | ${'5.5'} | ${'win32'} | ${'Phive is not supported on PHP 5.5'}
|
${'latest'} | ${'5.5'} | ${'win32'} | ${'Phive is not supported on PHP 5.5'}
|
||||||
|
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -685,6 +685,9 @@ async function addPhive(data) {
|
|||||||
case /7\.1/.test(data['php_version']):
|
case /7\.1/.test(data['php_version']):
|
||||||
data['version'] = data['version'].replace('latest', '0.13.5');
|
data['version'] = data['version'].replace('latest', '0.13.5');
|
||||||
break;
|
break;
|
||||||
|
case /7\.2/.test(data['php_version']):
|
||||||
|
data['version'] = data['version'].replace('latest', '0.14.5');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (data['version'] === 'latest') {
|
if (data['version'] === 'latest') {
|
||||||
data['domain'] = data['domain'] + '/releases';
|
data['domain'] = data['domain'] + '/releases';
|
||||||
|
@ -298,6 +298,9 @@ export async function addPhive(data: RS): Promise<string> {
|
|||||||
case /7\.1/.test(data['php_version']):
|
case /7\.1/.test(data['php_version']):
|
||||||
data['version'] = data['version'].replace('latest', '0.13.5');
|
data['version'] = data['version'].replace('latest', '0.13.5');
|
||||||
break;
|
break;
|
||||||
|
case /7\.2/.test(data['php_version']):
|
||||||
|
data['version'] = data['version'].replace('latest', '0.14.5');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (data['version'] === 'latest') {
|
if (data['version'] === 'latest') {
|
||||||
data['domain'] = data['domain'] + '/releases';
|
data['domain'] = data['domain'] + '/releases';
|
||||||
|
Loading…
Reference in New Issue
Block a user