mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-25 13:03:04 +07:00
Cannot get release to run, so forced in changes
This commit is contained in:
parent
4630172078
commit
22d9c80367
11
dist/index.js
vendored
11
dist/index.js
vendored
@ -885,6 +885,17 @@ async function addPhive(data) {
|
||||
}
|
||||
exports.addPhive = addPhive;
|
||||
async function addPHPUnitTools(data) {
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user