mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-19 20:14:44 +07:00
Add support for behat and phpspec
This commit is contained in:
6
dist/index.js
vendored
6
dist/index.js
vendored
@ -2053,7 +2053,7 @@ async function getCleanedToolsList(tools_csv) {
|
||||
.map(function (extension) {
|
||||
return extension
|
||||
.trim()
|
||||
.replace(/-agent|hirak\/|icanhazstring\/|laravel\/|narrowspark\/automatic-|overtrue\/|robmorgan\/|symfony\//, '');
|
||||
.replace(/-agent|behat\/|hirak\/|icanhazstring\/|laravel\/|narrowspark\/automatic-|overtrue\/|phpspec\/|robmorgan\/|symfony\//, '');
|
||||
})
|
||||
.filter(Boolean);
|
||||
return [...new Set(tools_list)];
|
||||
@ -2127,6 +2127,10 @@ async function addTools(tools_csv, php_version, os_version) {
|
||||
case 'protoc':
|
||||
script += await utils.customPackage(tool, 'tools', version, os_version);
|
||||
break;
|
||||
case 'behat':
|
||||
case 'phpspec':
|
||||
script += await addPackage(tool, release, tool + '/', os_version);
|
||||
break;
|
||||
case 'blackfire-player':
|
||||
url = await getPharUrl('https://get.blackfire.io', tool, 'v', version);
|
||||
script += await addArchive(tool, url, os_version, '"-V"');
|
||||
|
Reference in New Issue
Block a user