diff --git a/__tests__/tools.test.ts b/__tests__/tools.test.ts index 481268b4..7ccc65d2 100644 --- a/__tests__/tools.test.ts +++ b/__tests__/tools.test.ts @@ -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 () => { diff --git a/dist/index.js b/dist/index.js index bfffefe1..9e3e5555 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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': diff --git a/src/tools.ts b/src/tools.ts index 0682978a..48032370 100644 --- a/src/tools.ts +++ b/src/tools.ts @@ -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':