mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
commit
1d6dab3cd1
4
.github/workflows/workflow.yml
vendored
4
.github/workflows/workflow.yml
vendored
@ -16,10 +16,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Setup Node.js 10.x
|
- name: Setup Node.js 12.x
|
||||||
uses: actions/setup-node@master
|
uses: actions/setup-node@master
|
||||||
with:
|
with:
|
||||||
node-version: 10.x
|
node-version: 12.x
|
||||||
|
|
||||||
- name: Installing NPM packages
|
- name: Installing NPM packages
|
||||||
run: npm install
|
run: npm install
|
||||||
|
@ -26,7 +26,7 @@ Setup PHP with required extensions, php.ini configuration and composer in [GitHu
|
|||||||
|7.1|`Stable`|`Security fixes only`|
|
|7.1|`Stable`|`Security fixes only`|
|
||||||
|7.2|`Stable`|`Active`|
|
|7.2|`Stable`|`Active`|
|
||||||
|7.3|`Stable`|`Active`|
|
|7.3|`Stable`|`Active`|
|
||||||
|7.4|`RC3`/`RC4`|`Active`|
|
|7.4|`RC4`|`Active`|
|
||||||
|
|
||||||
**Note:** PHP 7.4 is currently in development, do not use in production/release branches.
|
**Note:** PHP 7.4 is currently in development, do not use in production/release branches.
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ describe('Config tests', () => {
|
|||||||
true
|
true
|
||||||
);
|
);
|
||||||
expect(linux).toContain(
|
expect(linux).toContain(
|
||||||
'echo "post_max_size=256M\nshort_open_tag=On\ndate.timezone=Asia/Kolkata" >> $ini_file'
|
'echo "post_max_size=256M\nshort_open_tag=On\ndate.timezone=Asia/Kolkata"'
|
||||||
);
|
);
|
||||||
|
|
||||||
linux = await config.addINIValues(
|
linux = await config.addINIValues(
|
||||||
@ -40,7 +40,7 @@ describe('Config tests', () => {
|
|||||||
'darwin'
|
'darwin'
|
||||||
);
|
);
|
||||||
expect(darwin).toContain(
|
expect(darwin).toContain(
|
||||||
'echo "post_max_size=256M\nshort_open_tag=On\ndate.timezone=Asia/Kolkata" >> $ini_file'
|
'echo "post_max_size=256M\nshort_open_tag=On\ndate.timezone=Asia/Kolkata"'
|
||||||
);
|
);
|
||||||
|
|
||||||
darwin = await config.addINIValues(
|
darwin = await config.addINIValues(
|
||||||
|
@ -47,16 +47,16 @@ describe('Extension tests', () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
linux = await extensions.addExtension('xdebug, pcov', '7.4', 'linux');
|
linux = await extensions.addExtension('xdebug, pcov', '7.4', 'linux');
|
||||||
expect(linux).toContain('./xdebug.sh');
|
expect(linux).toContain('xdebug.sh');
|
||||||
expect(linux).toContain('./pcov.sh');
|
expect(linux).toContain('pcov.sh');
|
||||||
|
|
||||||
linux = await extensions.addExtension('phalcon3, phalcon4', '7.2', 'linux');
|
linux = await extensions.addExtension('phalcon3, phalcon4', '7.2', 'linux');
|
||||||
expect(linux).toContain('./phalcon.sh master 7.2');
|
expect(linux).toContain('phalcon.sh master 7.2');
|
||||||
expect(linux).toContain('./phalcon.sh 4.0.x 7.2');
|
expect(linux).toContain('phalcon.sh 4.0.x 7.2');
|
||||||
|
|
||||||
linux = await extensions.addExtension('phalcon3, phalcon4', '7.3', 'linux');
|
linux = await extensions.addExtension('phalcon3, phalcon4', '7.3', 'linux');
|
||||||
expect(linux).toContain('./phalcon.sh master 7.3');
|
expect(linux).toContain('phalcon.sh master 7.3');
|
||||||
expect(linux).toContain('./phalcon.sh 4.0.x 7.3');
|
expect(linux).toContain('phalcon.sh 4.0.x 7.3');
|
||||||
|
|
||||||
linux = await extensions.addExtension('xdebug', '7.2', 'fedora');
|
linux = await extensions.addExtension('xdebug', '7.2', 'fedora');
|
||||||
expect(linux).toContain('Platform fedora is not supported');
|
expect(linux).toContain('Platform fedora is not supported');
|
||||||
@ -81,10 +81,10 @@ describe('Extension tests', () => {
|
|||||||
expect(darwin).toContain('sudo pecl install xdebug-2.5.5');
|
expect(darwin).toContain('sudo pecl install xdebug-2.5.5');
|
||||||
|
|
||||||
darwin = await extensions.addExtension('xdebug', '7.4', 'darwin');
|
darwin = await extensions.addExtension('xdebug', '7.4', 'darwin');
|
||||||
expect(darwin).toContain('sh ./xdebug_darwin.sh');
|
expect(darwin).toContain('xdebug_darwin.sh');
|
||||||
|
|
||||||
darwin = await extensions.addExtension('pcov', '7.4', 'darwin');
|
darwin = await extensions.addExtension('pcov', '7.4', 'darwin');
|
||||||
expect(darwin).toContain('sh ./pcov.sh');
|
expect(darwin).toContain('pcov.sh');
|
||||||
|
|
||||||
darwin = await extensions.addExtension('xdebug', '7.2', 'darwin');
|
darwin = await extensions.addExtension('xdebug', '7.2', 'darwin');
|
||||||
expect(darwin).toContain('sudo pecl install xdebug');
|
expect(darwin).toContain('sudo pecl install xdebug');
|
||||||
|
@ -61,23 +61,17 @@ describe('Utils tests', () => {
|
|||||||
expect(await utils.readScript('fedora.sh', '7.3', 'fedora')).toContain(
|
expect(await utils.readScript('fedora.sh', '7.3', 'fedora')).toContain(
|
||||||
'Platform fedora is not supported'
|
'Platform fedora is not supported'
|
||||||
);
|
);
|
||||||
await cleanup('./config.yaml');
|
|
||||||
await cleanup('./pcov.sh');
|
|
||||||
await cleanup('./phalcon.sh');
|
|
||||||
await cleanup('./php_pcov.dll');
|
|
||||||
await cleanup('./xdebug_darwin.sh');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('checking writeScripts', async () => {
|
it('checking writeScripts', async () => {
|
||||||
let testString: string = 'sudo apt-get install php';
|
let testString: string = 'sudo apt-get install php';
|
||||||
await utils.writeScript('test.sh', '10', testString);
|
let runner_dir: string = process.env['RUNNER_TOOL_CACHE'] || '';
|
||||||
await fs.readFile(path.join(__dirname, '../10test.sh'), function(
|
let script_path: string = path.join(runner_dir, 'test.sh');
|
||||||
error: any,
|
await utils.writeScript('test.sh', testString);
|
||||||
data: Buffer
|
await fs.readFile(script_path, function(error: any, data: Buffer) {
|
||||||
) {
|
|
||||||
expect(testString).toBe(data.toString());
|
expect(testString).toBe(data.toString());
|
||||||
});
|
});
|
||||||
await cleanup('./10test.sh');
|
await cleanup(script_path);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('checking extensionArray', async () => {
|
it('checking extensionArray', async () => {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
name: 'Setup PHP Action'
|
name: 'Setup PHP for use with GitHub Actions'
|
||||||
author: shivammathur
|
author: shivammathur
|
||||||
description: 'GitHub action to setup PHP with required extensions, php.ini configuration, code-coverage support and composer'
|
description: 'GitHub action to setup PHP with required extensions, php.ini configuration, code-coverage support and composer'
|
||||||
branding:
|
branding:
|
||||||
icon: 'activity'
|
icon: 'play'
|
||||||
color: 'purple'
|
color: 'purple'
|
||||||
inputs:
|
inputs:
|
||||||
php-version:
|
php-version:
|
||||||
|
@ -16,6 +16,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
const path = __importStar(require("path"));
|
||||||
const utils = __importStar(require("./utils"));
|
const utils = __importStar(require("./utils"));
|
||||||
/**
|
/**
|
||||||
* Install and enable extensions
|
* Install and enable extensions
|
||||||
@ -70,11 +71,15 @@ function addExtensionDarwin(extension_csv, version) {
|
|||||||
switch (version + extension) {
|
switch (version + extension) {
|
||||||
case '7.4xdebug':
|
case '7.4xdebug':
|
||||||
install_command =
|
install_command =
|
||||||
'sh ./xdebug_darwin.sh >/dev/null 2>&1 && echo "zend_extension=xdebug.so" >> $ini_file';
|
'sh ' +
|
||||||
|
path.join(__dirname, '../src/scripts/xdebug_darwin.sh') +
|
||||||
|
' >/dev/null 2>&1 && echo "zend_extension=xdebug.so" >> $ini_file';
|
||||||
break;
|
break;
|
||||||
case '7.4pcov':
|
case '7.4pcov':
|
||||||
install_command =
|
install_command =
|
||||||
'sh ./pcov.sh >/dev/null 2>&1 && echo "extension=pcov.so" >> $ini_file';
|
'sh ' +
|
||||||
|
path.join(__dirname, '../src/scripts/pcov.sh') +
|
||||||
|
' >/dev/null 2>&1 && echo "extension=pcov.so" >> $ini_file';
|
||||||
break;
|
break;
|
||||||
case '5.6xdebug':
|
case '5.6xdebug':
|
||||||
install_command = 'sudo pecl install xdebug-2.5.5 >/dev/null 2>&1';
|
install_command = 'sudo pecl install xdebug-2.5.5 >/dev/null 2>&1';
|
||||||
@ -156,19 +161,34 @@ function addExtensionLinux(extension_csv, version) {
|
|||||||
switch (version + extension) {
|
switch (version + extension) {
|
||||||
case '7.4xdebug':
|
case '7.4xdebug':
|
||||||
install_command =
|
install_command =
|
||||||
'./xdebug.sh >/dev/null 2>&1 && echo "zend_extension=xdebug.so" >> $ini_file';
|
'sh ' +
|
||||||
|
path.join(__dirname, '../src/scripts/xdebug.sh') +
|
||||||
|
' >/dev/null 2>&1 && echo "zend_extension=xdebug.so" >> $ini_file';
|
||||||
break;
|
break;
|
||||||
case '7.4pcov':
|
case '7.4pcov':
|
||||||
install_command =
|
install_command =
|
||||||
'./pcov.sh >/dev/null 2>&1 && echo "extension=pcov.so" >> $ini_file';
|
'sh ' +
|
||||||
|
path.join(__dirname, '../src/scripts/pcov.sh') +
|
||||||
|
' >/dev/null 2>&1 && echo "extension=pcov.so" >> $ini_file';
|
||||||
break;
|
break;
|
||||||
case '7.2phalcon3':
|
case '7.2phalcon3':
|
||||||
case '7.3phalcon3':
|
case '7.3phalcon3':
|
||||||
install_command = './phalcon.sh master ' + version + ' >/dev/null 2>&1';
|
install_command =
|
||||||
|
'sh ' +
|
||||||
|
path.join(__dirname, '../src/scripts/phalcon.sh') +
|
||||||
|
' master ' +
|
||||||
|
version +
|
||||||
|
' >/dev/null 2>&1';
|
||||||
break;
|
break;
|
||||||
case '7.2phalcon4':
|
case '7.2phalcon4':
|
||||||
case '7.3phalcon4':
|
case '7.3phalcon4':
|
||||||
install_command = './phalcon.sh 4.0.x ' + version + ' >/dev/null 2>&1';
|
case '7.4phalcon4':
|
||||||
|
install_command =
|
||||||
|
'sh ' +
|
||||||
|
path.join(__dirname, '../src/scripts/phalcon.sh') +
|
||||||
|
' 4.0.x ' +
|
||||||
|
version +
|
||||||
|
' >/dev/null 2>&1';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
install_command =
|
install_command =
|
||||||
|
@ -18,10 +18,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const exec_1 = require("@actions/exec/lib/exec");
|
const exec_1 = require("@actions/exec/lib/exec");
|
||||||
const core = __importStar(require("@actions/core"));
|
const core = __importStar(require("@actions/core"));
|
||||||
const utils = __importStar(require("./utils"));
|
|
||||||
const extensions = __importStar(require("./extensions"));
|
|
||||||
const config = __importStar(require("./config"));
|
const config = __importStar(require("./config"));
|
||||||
const coverage = __importStar(require("./coverage"));
|
const coverage = __importStar(require("./coverage"));
|
||||||
|
const extensions = __importStar(require("./extensions"));
|
||||||
|
const utils = __importStar(require("./utils"));
|
||||||
/**
|
/**
|
||||||
* Build the script
|
* Build the script
|
||||||
*
|
*
|
||||||
@ -45,7 +45,7 @@ function build(filename, version, os_version) {
|
|||||||
if (coverage_driver) {
|
if (coverage_driver) {
|
||||||
script += yield coverage.addCoverage(coverage_driver, version, os_version);
|
script += yield coverage.addCoverage(coverage_driver, version, os_version);
|
||||||
}
|
}
|
||||||
yield utils.writeScript(filename, version, script);
|
return yield utils.writeScript(filename, script);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@ -58,16 +58,16 @@ function run() {
|
|||||||
let version = yield utils.getInput('php-version', true);
|
let version = yield utils.getInput('php-version', true);
|
||||||
// check the os version and run the respective script
|
// check the os version and run the respective script
|
||||||
if (os_version == 'darwin') {
|
if (os_version == 'darwin') {
|
||||||
yield build('darwin.sh', version, os_version);
|
let script_path = yield build('darwin.sh', version, os_version);
|
||||||
yield exec_1.exec('sh ./' + version + 'darwin.sh ' + version);
|
yield exec_1.exec('sh ' + script_path + ' ' + version + ' ' + __dirname);
|
||||||
}
|
}
|
||||||
else if (os_version == 'win32') {
|
else if (os_version == 'win32') {
|
||||||
yield build('win32.ps1', version, os_version);
|
let script_path = yield build('win32.ps1', version, os_version);
|
||||||
yield exec_1.exec('pwsh .\\' + version + 'win32.ps1 -version ' + version);
|
yield exec_1.exec('pwsh ' + script_path + ' -version ' + version + ' -dir ' + __dirname);
|
||||||
}
|
}
|
||||||
else if (os_version == 'linux') {
|
else if (os_version == 'linux') {
|
||||||
yield build('linux.sh', version, os_version);
|
let script_path = yield build('linux.sh', version, os_version);
|
||||||
yield exec_1.exec('./' + version + 'linux.sh ' + version);
|
yield exec_1.exec('sh ' + script_path + ' ' + version + ' ' + __dirname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
|
43
lib/utils.js
43
lib/utils.js
@ -53,19 +53,6 @@ function asyncForEach(array, callback) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.asyncForEach = asyncForEach;
|
exports.asyncForEach = asyncForEach;
|
||||||
/**
|
|
||||||
* Copy config
|
|
||||||
*
|
|
||||||
* @param files
|
|
||||||
*/
|
|
||||||
function moveFiles(files) {
|
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
|
||||||
yield asyncForEach(files, function (filename) {
|
|
||||||
fs.createReadStream(path.join(__dirname, '../src/' + filename)).pipe(fs.createWriteStream(filename.split('/')[1], { mode: 0o755 }));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
exports.moveFiles = moveFiles;
|
|
||||||
/**
|
/**
|
||||||
* Read the scripts
|
* Read the scripts
|
||||||
*
|
*
|
||||||
@ -79,34 +66,15 @@ function readScript(filename, version, os_version) {
|
|||||||
case 'darwin':
|
case 'darwin':
|
||||||
switch (version) {
|
switch (version) {
|
||||||
case '7.4':
|
case '7.4':
|
||||||
yield moveFiles([
|
|
||||||
'configs/config.yaml',
|
|
||||||
'scripts/xdebug_darwin.sh',
|
|
||||||
'scripts/pcov.sh'
|
|
||||||
]);
|
|
||||||
return fs.readFileSync(path.join(__dirname, '../src/scripts/7.4.sh'), 'utf8');
|
return fs.readFileSync(path.join(__dirname, '../src/scripts/7.4.sh'), 'utf8');
|
||||||
}
|
}
|
||||||
break;
|
return fs.readFileSync(path.join(__dirname, '../src/scripts/' + filename), 'utf8');
|
||||||
case 'linux':
|
case 'linux':
|
||||||
let files = ['scripts/phalcon.sh'];
|
|
||||||
switch (version) {
|
|
||||||
case '7.4':
|
|
||||||
files = files.concat(['scripts/xdebug.sh', 'scripts/pcov.sh']);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
yield moveFiles(files);
|
|
||||||
break;
|
|
||||||
case 'win32':
|
case 'win32':
|
||||||
switch (version) {
|
return fs.readFileSync(path.join(__dirname, '../src/scripts/' + filename), 'utf8');
|
||||||
case '7.4':
|
|
||||||
yield moveFiles(['ext/php_pcov.dll']);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
return yield log('Platform ' + os_version + ' is not supported', os_version, 'error');
|
return yield log('Platform ' + os_version + ' is not supported', os_version, 'error');
|
||||||
}
|
}
|
||||||
return fs.readFileSync(path.join(__dirname, '../src/scripts/' + filename), 'utf8');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.readScript = readScript;
|
exports.readScript = readScript;
|
||||||
@ -117,9 +85,12 @@ exports.readScript = readScript;
|
|||||||
* @param version
|
* @param version
|
||||||
* @param script
|
* @param script
|
||||||
*/
|
*/
|
||||||
function writeScript(filename, version, script) {
|
function writeScript(filename, script) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
fs.writeFileSync(version + filename, script, { mode: 0o755 });
|
let runner_dir = yield getInput('RUNNER_TOOL_CACHE', false);
|
||||||
|
let script_path = path.join(runner_dir, filename);
|
||||||
|
fs.writeFileSync(script_path, script, { mode: 0o755 });
|
||||||
|
return script_path;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.writeScript = writeScript;
|
exports.writeScript = writeScript;
|
||||||
|
4
node_modules/@actions/core/package.json
generated
vendored
4
node_modules/@actions/core/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"@actions/core@1.2.0",
|
"@actions/core@1.2.0",
|
||||||
"E:\\python\\setup-php"
|
"C:\\wamp64\\www\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "@actions/core@1.2.0",
|
"_from": "@actions/core@1.2.0",
|
||||||
@ -28,7 +28,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.0.tgz",
|
"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.0.tgz",
|
||||||
"_spec": "1.2.0",
|
"_spec": "1.2.0",
|
||||||
"_where": "E:\\python\\setup-php",
|
"_where": "C:\\wamp64\\www\\setup-php",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
|
4
node_modules/@actions/exec/package.json
generated
vendored
4
node_modules/@actions/exec/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"@actions/exec@1.0.1",
|
"@actions/exec@1.0.1",
|
||||||
"E:\\python\\setup-php"
|
"C:\\wamp64\\www\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "@actions/exec@1.0.1",
|
"_from": "@actions/exec@1.0.1",
|
||||||
@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.1.tgz",
|
"_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.1.tgz",
|
||||||
"_spec": "1.0.1",
|
"_spec": "1.0.1",
|
||||||
"_where": "E:\\python\\setup-php",
|
"_where": "C:\\wamp64\\www\\setup-php",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
|
4
node_modules/@actions/io/package.json
generated
vendored
4
node_modules/@actions/io/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"@actions/io@1.0.1",
|
"@actions/io@1.0.1",
|
||||||
"E:\\python\\setup-php"
|
"C:\\wamp64\\www\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "@actions/io@1.0.1",
|
"_from": "@actions/io@1.0.1",
|
||||||
@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.1.tgz",
|
"_resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.1.tgz",
|
||||||
"_spec": "1.0.1",
|
"_spec": "1.0.1",
|
||||||
"_where": "E:\\python\\setup-php",
|
"_where": "C:\\wamp64\\www\\setup-php",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
|
4
node_modules/@actions/tool-cache/package.json
generated
vendored
4
node_modules/@actions/tool-cache/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"@actions/tool-cache@1.1.2",
|
"@actions/tool-cache@1.1.2",
|
||||||
"E:\\python\\setup-php"
|
"C:\\wamp64\\www\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "@actions/tool-cache@1.1.2",
|
"_from": "@actions/tool-cache@1.1.2",
|
||||||
@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-1.1.2.tgz",
|
"_resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-1.1.2.tgz",
|
||||||
"_spec": "1.1.2",
|
"_spec": "1.1.2",
|
||||||
"_where": "E:\\python\\setup-php",
|
"_where": "C:\\wamp64\\www\\setup-php",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
|
4
node_modules/fs/package.json
generated
vendored
4
node_modules/fs/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"fs@0.0.1-security",
|
"fs@0.0.1-security",
|
||||||
"E:\\python\\setup-php"
|
"C:\\wamp64\\www\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "fs@0.0.1-security",
|
"_from": "fs@0.0.1-security",
|
||||||
@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
|
"_resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
|
||||||
"_spec": "0.0.1-security",
|
"_spec": "0.0.1-security",
|
||||||
"_where": "E:\\python\\setup-php",
|
"_where": "C:\\wamp64\\www\\setup-php",
|
||||||
"author": "",
|
"author": "",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/npm/security-holder/issues"
|
"url": "https://github.com/npm/security-holder/issues"
|
||||||
|
8
node_modules/semver/package.json
generated
vendored
8
node_modules/semver/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"semver@6.3.0",
|
"semver@6.3.0",
|
||||||
"E:\\python\\setup-php"
|
"C:\\wamp64\\www\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "semver@6.3.0",
|
"_from": "semver@6.3.0",
|
||||||
@ -23,12 +23,14 @@
|
|||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"/@actions/tool-cache",
|
"/@actions/tool-cache",
|
||||||
|
"/eslint-plugin-compat",
|
||||||
"/istanbul-lib-instrument",
|
"/istanbul-lib-instrument",
|
||||||
"/jest-snapshot"
|
"/jest-snapshot",
|
||||||
|
"/node-releases"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
|
"_resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
|
||||||
"_spec": "6.3.0",
|
"_spec": "6.3.0",
|
||||||
"_where": "E:\\python\\setup-php",
|
"_where": "C:\\wamp64\\www\\setup-php",
|
||||||
"bin": {
|
"bin": {
|
||||||
"semver": "./bin/semver.js"
|
"semver": "./bin/semver.js"
|
||||||
},
|
},
|
||||||
|
4
node_modules/tunnel/package.json
generated
vendored
4
node_modules/tunnel/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"tunnel@0.0.4",
|
"tunnel@0.0.4",
|
||||||
"E:\\python\\setup-php"
|
"C:\\wamp64\\www\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "tunnel@0.0.4",
|
"_from": "tunnel@0.0.4",
|
||||||
@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.4.tgz",
|
"_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.4.tgz",
|
||||||
"_spec": "0.0.4",
|
"_spec": "0.0.4",
|
||||||
"_where": "E:\\python\\setup-php",
|
"_where": "C:\\wamp64\\www\\setup-php",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Koichi Kobayashi",
|
"name": "Koichi Kobayashi",
|
||||||
"email": "koichik@improvement.jp"
|
"email": "koichik@improvement.jp"
|
||||||
|
4
node_modules/typed-rest-client/package.json
generated
vendored
4
node_modules/typed-rest-client/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"typed-rest-client@1.5.0",
|
"typed-rest-client@1.5.0",
|
||||||
"E:\\python\\setup-php"
|
"C:\\wamp64\\www\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "typed-rest-client@1.5.0",
|
"_from": "typed-rest-client@1.5.0",
|
||||||
@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.5.0.tgz",
|
"_resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.5.0.tgz",
|
||||||
"_spec": "1.5.0",
|
"_spec": "1.5.0",
|
||||||
"_where": "E:\\python\\setup-php",
|
"_where": "C:\\wamp64\\www\\setup-php",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Microsoft Corporation"
|
"name": "Microsoft Corporation"
|
||||||
},
|
},
|
||||||
|
4
node_modules/underscore/package.json
generated
vendored
4
node_modules/underscore/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"underscore@1.8.3",
|
"underscore@1.8.3",
|
||||||
"E:\\python\\setup-php"
|
"C:\\wamp64\\www\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "underscore@1.8.3",
|
"_from": "underscore@1.8.3",
|
||||||
@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
|
"_resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
|
||||||
"_spec": "1.8.3",
|
"_spec": "1.8.3",
|
||||||
"_where": "E:\\python\\setup-php",
|
"_where": "C:\\wamp64\\www\\setup-php",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Jeremy Ashkenas",
|
"name": "Jeremy Ashkenas",
|
||||||
"email": "jeremy@documentcloud.org"
|
"email": "jeremy@documentcloud.org"
|
||||||
|
4
node_modules/uuid/package.json
generated
vendored
4
node_modules/uuid/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"uuid@3.3.3",
|
"uuid@3.3.3",
|
||||||
"E:\\python\\setup-php"
|
"C:\\wamp64\\www\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "uuid@3.3.3",
|
"_from": "uuid@3.3.3",
|
||||||
@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz",
|
"_resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz",
|
||||||
"_spec": "3.3.3",
|
"_spec": "3.3.3",
|
||||||
"_where": "E:\\python\\setup-php",
|
"_where": "C:\\wamp64\\www\\setup-php",
|
||||||
"bin": {
|
"bin": {
|
||||||
"uuid": "./bin/uuid"
|
"uuid": "./bin/uuid"
|
||||||
},
|
},
|
||||||
|
117
package-lock.json
generated
117
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "setup-php",
|
"name": "setup-php",
|
||||||
"version": "1.4.4",
|
"version": "1.4.5",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -184,6 +184,15 @@
|
|||||||
"@babel/helper-plugin-utils": "^7.0.0"
|
"@babel/helper-plugin-utils": "^7.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@babel/runtime": {
|
||||||
|
"version": "7.6.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.6.3.tgz",
|
||||||
|
"integrity": "sha512-kq6anf9JGjW8Nt5rYfEuGRaEAaH1mkv3Bbu6rYvLOpPh/RusSJXuKPEAoZ7L7gybZkchE8+NV5g9vKF4AGAtsA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"regenerator-runtime": "^0.13.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
"@babel/template": {
|
"@babel/template": {
|
||||||
"version": "7.6.0",
|
"version": "7.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.6.0.tgz",
|
||||||
@ -525,9 +534,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@types/jest": {
|
"@types/jest": {
|
||||||
"version": "24.0.19",
|
"version": "24.0.20",
|
||||||
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.19.tgz",
|
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.20.tgz",
|
||||||
"integrity": "sha512-YYiqfSjocv7lk5H/T+v5MjATYjaTMsUkbDnjGqSMoO88jWdtJXJV4ST/7DKZcoMHMBvB2SeSfyOzZfkxXHR5xg==",
|
"integrity": "sha512-M8ebEkOpykGdLoRrmew7UowTZ1DANeeP0HiSIChl/4DGgmnSC1ntitNtkyNSXjMTsZvXuaxJrxjImEnRWNPsPw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/jest-diff": "*"
|
"@types/jest-diff": "*"
|
||||||
@ -711,6 +720,12 @@
|
|||||||
"integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=",
|
"integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"ast-metadata-inferer": {
|
||||||
|
"version": "0.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/ast-metadata-inferer/-/ast-metadata-inferer-0.1.1.tgz",
|
||||||
|
"integrity": "sha512-hc9w8Qrgg9Lf9iFcZVhNjUnhrd2BBpTlyCnegPVvCe6O0yMrF57a6Cmh7k+xUsfUOMh9wajOL5AsGOBNEyTCcw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"astral-regex": {
|
"astral-regex": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz",
|
||||||
@ -933,6 +948,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"browserslist": {
|
||||||
|
"version": "4.7.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.7.2.tgz",
|
||||||
|
"integrity": "sha512-uZavT/gZXJd2UTi9Ov7/Z340WOSQ3+m1iBVRUknf+okKxonL9P83S3ctiBDtuRmRu8PiCHjqyueqQ9HYlJhxiw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"caniuse-lite": "^1.0.30001004",
|
||||||
|
"electron-to-chromium": "^1.3.295",
|
||||||
|
"node-releases": "^1.1.38"
|
||||||
|
}
|
||||||
|
},
|
||||||
"bs-logger": {
|
"bs-logger": {
|
||||||
"version": "0.2.6",
|
"version": "0.2.6",
|
||||||
"resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz",
|
"resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz",
|
||||||
@ -1004,6 +1030,18 @@
|
|||||||
"integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
|
"integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"caniuse-db": {
|
||||||
|
"version": "1.0.30001005",
|
||||||
|
"resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30001005.tgz",
|
||||||
|
"integrity": "sha512-MSRfm2N6FRDSpAJ00ipCuFe0CNink5JJOFzl4S7fLSBJdowhGq3uMxzkWGTjvvReo1PuWfK5YYJydJJ+9mJebw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"caniuse-lite": {
|
||||||
|
"version": "1.0.30001005",
|
||||||
|
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001005.tgz",
|
||||||
|
"integrity": "sha512-g78miZm1Z5njjYR216a5812oPiLgV1ssndgGxITHWUopmjUrCswMisA0a2kSB7a0vZRox6JOKhM51+efmYN8Mg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"capture-exit": {
|
"capture-exit": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz",
|
||||||
@ -1345,6 +1383,12 @@
|
|||||||
"safer-buffer": "^2.1.0"
|
"safer-buffer": "^2.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"electron-to-chromium": {
|
||||||
|
"version": "1.3.296",
|
||||||
|
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.296.tgz",
|
||||||
|
"integrity": "sha512-s5hv+TSJSVRsxH190De66YHb50pBGTweT9XGWYu/LMR20KX6TsjFzObo36CjVAzM+PUeeKSBRtm/mISlCzeojQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"emoji-regex": {
|
"emoji-regex": {
|
||||||
"version": "7.0.3",
|
"version": "7.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
|
||||||
@ -1425,6 +1469,21 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"eslint-plugin-compat": {
|
||||||
|
"version": "3.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/eslint-plugin-compat/-/eslint-plugin-compat-3.3.0.tgz",
|
||||||
|
"integrity": "sha512-QCgYy3pZ+zH10dkBJus1xER0359h1UhJjufhQRqp9Owm6BEoLZeSqxf2zINwL1OGao9Yc96xPYIW3nQj5HUryg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@babel/runtime": "^7.4.5",
|
||||||
|
"ast-metadata-inferer": "^0.1.1",
|
||||||
|
"browserslist": "^4.6.3",
|
||||||
|
"caniuse-db": "^1.0.30000977",
|
||||||
|
"lodash.memoize": "4.1.2",
|
||||||
|
"mdn-browser-compat-data": "^0.0.84",
|
||||||
|
"semver": "^6.1.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
"esprima": {
|
"esprima": {
|
||||||
"version": "4.0.1",
|
"version": "4.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
||||||
@ -1739,8 +1798,7 @@
|
|||||||
"ansi-regex": {
|
"ansi-regex": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"aproba": {
|
"aproba": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
@ -2155,8 +2213,7 @@
|
|||||||
"safe-buffer": {
|
"safe-buffer": {
|
||||||
"version": "5.1.2",
|
"version": "5.1.2",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"safer-buffer": {
|
"safer-buffer": {
|
||||||
"version": "2.1.2",
|
"version": "2.1.2",
|
||||||
@ -2212,7 +2269,6 @@
|
|||||||
"version": "3.0.1",
|
"version": "3.0.1",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"ansi-regex": "^2.0.0"
|
"ansi-regex": "^2.0.0"
|
||||||
}
|
}
|
||||||
@ -2256,14 +2312,12 @@
|
|||||||
"wrappy": {
|
"wrappy": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"yallist": {
|
"yallist": {
|
||||||
"version": "3.0.3",
|
"version": "3.0.3",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -2342,11 +2396,12 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"handlebars": {
|
"handlebars": {
|
||||||
"version": "4.4.5",
|
"version": "4.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.4.5.tgz",
|
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.5.0.tgz",
|
||||||
"integrity": "sha512-0Ce31oWVB7YidkaTq33ZxEbN+UDxMMgThvCe8ptgQViymL5DPis9uLdTA13MiRPhgvqyxIegugrP97iK3JeBHg==",
|
"integrity": "sha512-yss1ZbupTpRfe86dpM1abxnnSfxa6eIRn3laqBPIgRYy87qgYtX6xinSOeybjYo/4AVzdTTWK5Kr06A6AllxJg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
|
"eslint-plugin-compat": "^3.3.0",
|
||||||
"neo-async": "^2.6.0",
|
"neo-async": "^2.6.0",
|
||||||
"optimist": "^0.6.1",
|
"optimist": "^0.6.1",
|
||||||
"source-map": "^0.6.1",
|
"source-map": "^0.6.1",
|
||||||
@ -3552,6 +3607,15 @@
|
|||||||
"object-visit": "^1.0.0"
|
"object-visit": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"mdn-browser-compat-data": {
|
||||||
|
"version": "0.0.84",
|
||||||
|
"resolved": "https://registry.npmjs.org/mdn-browser-compat-data/-/mdn-browser-compat-data-0.0.84.tgz",
|
||||||
|
"integrity": "sha512-fAznuGNaQMQiWLVf+gyp33FaABTglYWqMT7JqvH+4RZn2UQPD12gbMqxwP9m0lj8AAbNpu5/kD6n4Ox1SOffpw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"extend": "3.0.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
"merge-stream": {
|
"merge-stream": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
|
||||||
@ -3730,6 +3794,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node-releases": {
|
||||||
|
"version": "1.1.39",
|
||||||
|
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.39.tgz",
|
||||||
|
"integrity": "sha512-8MRC/ErwNCHOlAFycy9OPca46fQYUjbJRDcZTHVWIGXIjYLM73k70vv3WkYutVnM4cCo4hE0MqBVVZjP6vjISA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"semver": "^6.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"normalize-package-data": {
|
"normalize-package-data": {
|
||||||
"version": "2.5.0",
|
"version": "2.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
|
||||||
@ -4213,6 +4286,12 @@
|
|||||||
"util.promisify": "^1.0.0"
|
"util.promisify": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"regenerator-runtime": {
|
||||||
|
"version": "0.13.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz",
|
||||||
|
"integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"regex-not": {
|
"regex-not": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz",
|
||||||
@ -4632,9 +4711,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"source-map-support": {
|
"source-map-support": {
|
||||||
"version": "0.5.13",
|
"version": "0.5.15",
|
||||||
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz",
|
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.15.tgz",
|
||||||
"integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==",
|
"integrity": "sha512-wYF5aX1J0+V51BDT3Om7uXNn0ct2FWiV4bvwiGVefxkm+1S1o5jsecE5lb2U28DDblzxzxeIDbTVpXHI9D/9hA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"buffer-from": "^1.0.0",
|
"buffer-from": "^1.0.0",
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "setup-php",
|
"name": "setup-php",
|
||||||
"version": "1.4.4",
|
"version": "1.4.5",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "Setup php action",
|
"description": "Setup PHP for use with GitHub Actions",
|
||||||
"main": "lib/setup-php.js",
|
"main": "lib/setup-php.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import * as path from 'path';
|
||||||
import * as utils from './utils';
|
import * as utils from './utils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -62,11 +63,15 @@ export async function addExtensionDarwin(
|
|||||||
switch (version + extension) {
|
switch (version + extension) {
|
||||||
case '7.4xdebug':
|
case '7.4xdebug':
|
||||||
install_command =
|
install_command =
|
||||||
'sh ./xdebug_darwin.sh >/dev/null 2>&1 && echo "zend_extension=xdebug.so" >> $ini_file';
|
'sh ' +
|
||||||
|
path.join(__dirname, '../src/scripts/xdebug_darwin.sh') +
|
||||||
|
' >/dev/null 2>&1 && echo "zend_extension=xdebug.so" >> $ini_file';
|
||||||
break;
|
break;
|
||||||
case '7.4pcov':
|
case '7.4pcov':
|
||||||
install_command =
|
install_command =
|
||||||
'sh ./pcov.sh >/dev/null 2>&1 && echo "extension=pcov.so" >> $ini_file';
|
'sh ' +
|
||||||
|
path.join(__dirname, '../src/scripts/pcov.sh') +
|
||||||
|
' >/dev/null 2>&1 && echo "extension=pcov.so" >> $ini_file';
|
||||||
break;
|
break;
|
||||||
case '5.6xdebug':
|
case '5.6xdebug':
|
||||||
install_command = 'sudo pecl install xdebug-2.5.5 >/dev/null 2>&1';
|
install_command = 'sudo pecl install xdebug-2.5.5 >/dev/null 2>&1';
|
||||||
@ -149,19 +154,34 @@ export async function addExtensionLinux(
|
|||||||
switch (version + extension) {
|
switch (version + extension) {
|
||||||
case '7.4xdebug':
|
case '7.4xdebug':
|
||||||
install_command =
|
install_command =
|
||||||
'./xdebug.sh >/dev/null 2>&1 && echo "zend_extension=xdebug.so" >> $ini_file';
|
'sh ' +
|
||||||
|
path.join(__dirname, '../src/scripts/xdebug.sh') +
|
||||||
|
' >/dev/null 2>&1 && echo "zend_extension=xdebug.so" >> $ini_file';
|
||||||
break;
|
break;
|
||||||
case '7.4pcov':
|
case '7.4pcov':
|
||||||
install_command =
|
install_command =
|
||||||
'./pcov.sh >/dev/null 2>&1 && echo "extension=pcov.so" >> $ini_file';
|
'sh ' +
|
||||||
|
path.join(__dirname, '../src/scripts/pcov.sh') +
|
||||||
|
' >/dev/null 2>&1 && echo "extension=pcov.so" >> $ini_file';
|
||||||
break;
|
break;
|
||||||
case '7.2phalcon3':
|
case '7.2phalcon3':
|
||||||
case '7.3phalcon3':
|
case '7.3phalcon3':
|
||||||
install_command = './phalcon.sh master ' + version + ' >/dev/null 2>&1';
|
install_command =
|
||||||
|
'sh ' +
|
||||||
|
path.join(__dirname, '../src/scripts/phalcon.sh') +
|
||||||
|
' master ' +
|
||||||
|
version +
|
||||||
|
' >/dev/null 2>&1';
|
||||||
break;
|
break;
|
||||||
case '7.2phalcon4':
|
case '7.2phalcon4':
|
||||||
case '7.3phalcon4':
|
case '7.3phalcon4':
|
||||||
install_command = './phalcon.sh 4.0.x ' + version + ' >/dev/null 2>&1';
|
case '7.4phalcon4':
|
||||||
|
install_command =
|
||||||
|
'sh ' +
|
||||||
|
path.join(__dirname, '../src/scripts/phalcon.sh') +
|
||||||
|
' 4.0.x ' +
|
||||||
|
version +
|
||||||
|
' >/dev/null 2>&1';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
install_command =
|
install_command =
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
import {exec} from '@actions/exec/lib/exec';
|
import {exec} from '@actions/exec/lib/exec';
|
||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
import * as utils from './utils';
|
import * as path from 'path';
|
||||||
import * as extensions from './extensions';
|
|
||||||
import * as config from './config';
|
import * as config from './config';
|
||||||
import * as coverage from './coverage';
|
import * as coverage from './coverage';
|
||||||
|
import * as extensions from './extensions';
|
||||||
|
import * as utils from './utils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build the script
|
* Build the script
|
||||||
@ -12,7 +13,11 @@ import * as coverage from './coverage';
|
|||||||
* @param version
|
* @param version
|
||||||
* @param os_version
|
* @param os_version
|
||||||
*/
|
*/
|
||||||
async function build(filename: string, version: string, os_version: string) {
|
async function build(
|
||||||
|
filename: string,
|
||||||
|
version: string,
|
||||||
|
os_version: string
|
||||||
|
): Promise<string> {
|
||||||
// taking inputs
|
// taking inputs
|
||||||
let extension_csv: string = await utils.getInput('extension-csv', false);
|
let extension_csv: string = await utils.getInput('extension-csv', false);
|
||||||
let ini_values_csv: string = await utils.getInput('ini-values-csv', false);
|
let ini_values_csv: string = await utils.getInput('ini-values-csv', false);
|
||||||
@ -28,7 +33,8 @@ async function build(filename: string, version: string, os_version: string) {
|
|||||||
if (coverage_driver) {
|
if (coverage_driver) {
|
||||||
script += await coverage.addCoverage(coverage_driver, version, os_version);
|
script += await coverage.addCoverage(coverage_driver, version, os_version);
|
||||||
}
|
}
|
||||||
await utils.writeScript(filename, version, script);
|
|
||||||
|
return await utils.writeScript(filename, script);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -40,14 +46,16 @@ async function run() {
|
|||||||
let version: string = await utils.getInput('php-version', true);
|
let version: string = await utils.getInput('php-version', true);
|
||||||
// check the os version and run the respective script
|
// check the os version and run the respective script
|
||||||
if (os_version == 'darwin') {
|
if (os_version == 'darwin') {
|
||||||
await build('darwin.sh', version, os_version);
|
let script_path: string = await build('darwin.sh', version, os_version);
|
||||||
await exec('sh ./' + version + 'darwin.sh ' + version);
|
await exec('sh ' + script_path + ' ' + version + ' ' + __dirname);
|
||||||
} else if (os_version == 'win32') {
|
} else if (os_version == 'win32') {
|
||||||
await build('win32.ps1', version, os_version);
|
let script_path: string = await build('win32.ps1', version, os_version);
|
||||||
await exec('pwsh .\\' + version + 'win32.ps1 -version ' + version);
|
await exec(
|
||||||
|
'pwsh ' + script_path + ' -version ' + version + ' -dir ' + __dirname
|
||||||
|
);
|
||||||
} else if (os_version == 'linux') {
|
} else if (os_version == 'linux') {
|
||||||
await build('linux.sh', version, os_version);
|
let script_path: string = await build('linux.sh', version, os_version);
|
||||||
await exec('./' + version + 'linux.sh ' + version);
|
await exec('sh ' + script_path + ' ' + version + ' ' + __dirname);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
@ -58,7 +58,7 @@ echo 'export EXTRA_LIBS="/usr/local/opt/readline/lib/libhistory.dylib
|
|||||||
/usr/local/opt/icu4c/lib/libicutu.dylib
|
/usr/local/opt/icu4c/lib/libicutu.dylib
|
||||||
/usr/local/opt/icu4c/lib/libicuuc.dylib"'
|
/usr/local/opt/icu4c/lib/libicuuc.dylib"'
|
||||||
} >> ~/.bash_profile
|
} >> ~/.bash_profile
|
||||||
config_file=$(pwd)/config.yaml
|
config_file=$2/../src/configs/config.yaml
|
||||||
|
|
||||||
step_log "Setup PHPBrew"
|
step_log "Setup PHPBrew"
|
||||||
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew >/dev/null 2>&1
|
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew >/dev/null 2>&1
|
||||||
|
@ -34,7 +34,7 @@ if [ "$existing_version" != "$1" ]; then
|
|||||||
|
|
||||||
for tool in php phar phar.phar php-cgi php-config phpize; do
|
for tool in php phar phar.phar php-cgi php-config phpize; do
|
||||||
if [ -e "/usr/bin/$tool$1" ]; then
|
if [ -e "/usr/bin/$tool$1" ]; then
|
||||||
sudo update-alternatives --set $tool /usr/bin/"$tool$1" >/dev/null 2>&1 &
|
sudo update-alternatives --set $tool /usr/bin/"$tool$1" >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
git clone --depth=1 https://github.com/krakjoe/pcov.git
|
cd ~ && git clone --depth=1 https://github.com/krakjoe/pcov.git
|
||||||
(
|
|
||||||
cd pcov && phpize
|
cd pcov && phpize
|
||||||
./configure --enable-pcov
|
./configure --enable-pcov
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
)
|
|
||||||
|
@ -1,19 +1,21 @@
|
|||||||
ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
|
ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt install php"$2"-dev php-pear -y
|
sudo DEBIAN_FRONTEND=noninteractive apt install php"$2"-dev -y
|
||||||
for tool in php-config phpize; do
|
for tool in php-config phpize; do
|
||||||
if [ -e "/usr/bin/$tool$2" ]; then
|
if [ -e "/usr/bin/$tool$2" ]; then
|
||||||
sudo update-alternatives --set $tool /usr/bin/"$tool$2" &
|
sudo update-alternatives --set $tool /usr/bin/"$tool$2"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
sudo pecl config-set php_ini "$ini_file"
|
|
||||||
sudo pear config-set php_ini "$ini_file"
|
cd ~ && git clone --depth=1 https://github.com/jbboehr/php-psr.git
|
||||||
sudo pecl install psr
|
cd php-psr && sudo /usr/bin/phpize"$2"
|
||||||
|
./configure --with-php-config=/usr/bin/php-config"$2"
|
||||||
|
make -j2 && sudo make -j2 install
|
||||||
|
echo "extension=psr.so" >> "$ini_file"
|
||||||
|
|
||||||
if [ "$1" = "master" ]; then
|
if [ "$1" = "master" ]; then
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt install php"$2"-phalcon -y
|
sudo DEBIAN_FRONTEND=noninteractive apt install php"$2"-phalcon -y
|
||||||
else
|
else
|
||||||
git clone --depth=1 -v https://github.com/phalcon/cphalcon.git -b "$1"
|
cd ~ && git clone --depth=1 -v https://github.com/phalcon/cphalcon.git -b "$1"
|
||||||
(
|
|
||||||
cd cphalcon/build && sudo ./install --phpize /usr/bin/phpize"$2" --php-config /usr/bin/php-config"$2"
|
cd cphalcon/build && sudo ./install --phpize /usr/bin/phpize"$2" --php-config /usr/bin/php-config"$2"
|
||||||
echo "extension=phalcon.so" >> "$ini_file"
|
echo "extension=phalcon.so" >> "$ini_file"
|
||||||
)
|
|
||||||
fi
|
fi
|
@ -1,5 +1,6 @@
|
|||||||
param (
|
param (
|
||||||
[Parameter(Mandatory=$true)][string]$version = "7.3"
|
[Parameter(Mandatory=$true)][string]$version = "7.3",
|
||||||
|
[Parameter(Mandatory=$true)][string]$dir
|
||||||
)
|
)
|
||||||
|
|
||||||
$tick = ([char]8730)
|
$tick = ([char]8730)
|
||||||
@ -41,7 +42,7 @@ if($version -lt '7.4') {
|
|||||||
Enable-PhpExtension curl
|
Enable-PhpExtension curl
|
||||||
} else {
|
} else {
|
||||||
Add-Content C:\tools\php\php.ini "extension=php_openssl.dll`nextension=php_curl.dll"
|
Add-Content C:\tools\php\php.ini "extension=php_openssl.dll`nextension=php_curl.dll"
|
||||||
Copy-Item "php_pcov.dll" -Destination $ext_dir"\php_pcov.dll"
|
Copy-Item $dir"\..\src\ext\php_pcov.dll" -Destination $ext_dir"\php_pcov.dll"
|
||||||
}
|
}
|
||||||
Add-Log $tick "PHP" $status
|
Add-Log $tick "PHP" $status
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
git clone --depth=1 https://github.com/xdebug/xdebug.git
|
cd ~ && git clone --depth=1 https://github.com/xdebug/xdebug.git
|
||||||
(
|
cd xdebug || echo "Failed to clone Xdebug"
|
||||||
cd xdebug || echo "cd failed"
|
|
||||||
sudo ./rebuild.sh
|
sudo ./rebuild.sh
|
||||||
)
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
git clone --depth=1 https://github.com/xdebug/xdebug.git
|
cd ~ && git clone --depth=1 https://github.com/xdebug/xdebug.git
|
||||||
(
|
cd xdebug || echo "Failed to clone Xdebug"
|
||||||
cd xdebug || echo "cd failed"
|
|
||||||
sudo phpize
|
sudo phpize
|
||||||
sudo ./configure
|
sudo ./configure
|
||||||
sudo make
|
sudo make
|
||||||
sudo cp modules/xdebug.so "$(php -i | grep "extension_dir => /opt" | sed -e "s|.*=> s*||")"
|
sudo cp modules/xdebug.so "$(php -i | grep "extension_dir => /opt" | sed -e "s|.*=> s*||")"
|
||||||
)
|
|
||||||
|
54
src/utils.ts
54
src/utils.ts
@ -38,19 +38,6 @@ export async function asyncForEach(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Copy config
|
|
||||||
*
|
|
||||||
* @param files
|
|
||||||
*/
|
|
||||||
export async function moveFiles(files: Array<string>) {
|
|
||||||
await asyncForEach(files, function(filename: string) {
|
|
||||||
fs.createReadStream(path.join(__dirname, '../src/' + filename)).pipe(
|
|
||||||
fs.createWriteStream(filename.split('/')[1], {mode: 0o755})
|
|
||||||
);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read the scripts
|
* Read the scripts
|
||||||
*
|
*
|
||||||
@ -67,33 +54,21 @@ export async function readScript(
|
|||||||
case 'darwin':
|
case 'darwin':
|
||||||
switch (version) {
|
switch (version) {
|
||||||
case '7.4':
|
case '7.4':
|
||||||
await moveFiles([
|
|
||||||
'configs/config.yaml',
|
|
||||||
'scripts/xdebug_darwin.sh',
|
|
||||||
'scripts/pcov.sh'
|
|
||||||
]);
|
|
||||||
return fs.readFileSync(
|
return fs.readFileSync(
|
||||||
path.join(__dirname, '../src/scripts/7.4.sh'),
|
path.join(__dirname, '../src/scripts/7.4.sh'),
|
||||||
'utf8'
|
'utf8'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
return fs.readFileSync(
|
||||||
|
path.join(__dirname, '../src/scripts/' + filename),
|
||||||
|
'utf8'
|
||||||
|
);
|
||||||
case 'linux':
|
case 'linux':
|
||||||
let files: Array<string> = ['scripts/phalcon.sh'];
|
|
||||||
switch (version) {
|
|
||||||
case '7.4':
|
|
||||||
files = files.concat(['scripts/xdebug.sh', 'scripts/pcov.sh']);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
await moveFiles(files);
|
|
||||||
break;
|
|
||||||
case 'win32':
|
case 'win32':
|
||||||
switch (version) {
|
return fs.readFileSync(
|
||||||
case '7.4':
|
path.join(__dirname, '../src/scripts/' + filename),
|
||||||
await moveFiles(['ext/php_pcov.dll']);
|
'utf8'
|
||||||
break;
|
);
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
return await log(
|
return await log(
|
||||||
'Platform ' + os_version + ' is not supported',
|
'Platform ' + os_version + ' is not supported',
|
||||||
@ -101,11 +76,6 @@ export async function readScript(
|
|||||||
'error'
|
'error'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return fs.readFileSync(
|
|
||||||
path.join(__dirname, '../src/scripts/' + filename),
|
|
||||||
'utf8'
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -117,10 +87,12 @@ export async function readScript(
|
|||||||
*/
|
*/
|
||||||
export async function writeScript(
|
export async function writeScript(
|
||||||
filename: string,
|
filename: string,
|
||||||
version: string,
|
|
||||||
script: string
|
script: string
|
||||||
): Promise<any> {
|
): Promise<string> {
|
||||||
fs.writeFileSync(version + filename, script, {mode: 0o755});
|
let runner_dir: string = await getInput('RUNNER_TOOL_CACHE', false);
|
||||||
|
let script_path: string = path.join(runner_dir, filename);
|
||||||
|
fs.writeFileSync(script_path, script, {mode: 0o755});
|
||||||
|
return script_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user