mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-25 13:03:04 +07:00
Update Phive configuration
This commit is contained in:
parent
506357cdb9
commit
e59c938e82
@ -127,6 +127,11 @@ describe('Tools tests', () => {
|
||||
expect(script).toContain(
|
||||
'Add-Tool https://github.com/phar-io/phive/releases/download/0.13.5/phive-0.13.5.phar phive'
|
||||
);
|
||||
|
||||
script = await tools.addPhive('latest', '7.2', 'win32');
|
||||
expect(script).toContain(
|
||||
'Add-Tool https://github.com/phar-io/phive/releases/download/0.14.5/phive-0.14.5.phar phive'
|
||||
);
|
||||
});
|
||||
|
||||
it('checking getPhpunitUri', async () => {
|
||||
|
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -571,6 +571,9 @@ async function addPhive(version, php_version, os_version) {
|
||||
case /7\.1/.test(php_version):
|
||||
version = version.replace('latest', '0.13.5');
|
||||
break;
|
||||
case /7\.2/.test(php_version):
|
||||
version = version.replace('latest', '0.14.5');
|
||||
break;
|
||||
}
|
||||
switch (version) {
|
||||
case 'latest':
|
||||
|
@ -119,6 +119,9 @@ export async function addPhive(
|
||||
case /7\.1/.test(php_version):
|
||||
version = version.replace('latest', '0.13.5');
|
||||
break;
|
||||
case /7\.2/.test(php_version):
|
||||
version = version.replace('latest', '0.14.5');
|
||||
break;
|
||||
}
|
||||
switch (version) {
|
||||
case 'latest':
|
||||
|
Loading…
Reference in New Issue
Block a user