mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-01 19:27:57 +07:00
Added what should be compensation for phpunit versions
This commit is contained in:
11
src/tools.ts
11
src/tools.ts
@ -392,6 +392,17 @@ export async function addPhive(data: RS): Promise<string> {
|
||||
* @param data
|
||||
*/
|
||||
export async function addPHPUnitTools(data: RS): Promise<string> {
|
||||
if (data['version'] == 'latest') {
|
||||
if (/7\.3|8\.0/.test(data['php_version'])) {
|
||||
data['version'] = '9.6.8';
|
||||
} else if (/7\.[2-3]/.test(data['php_version'])) {
|
||||
data['version'] = '8.5.33';
|
||||
} else if (/7\.[1-3]/.test(data['php_version'])) {
|
||||
data['version'] = '7.5.20';
|
||||
} else if (/7\.[0-2]/.test(data['php_version'])) {
|
||||
data['version'] = '6.5.14';
|
||||
}
|
||||
}
|
||||
data['url'] = await getPharUrl(data);
|
||||
return await addArchive(data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user