setup-php 1.11.2 → 1.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +433 -458
  3. package/lib/config.d.ts +3 -0
  4. package/lib/config.js +71 -71
  5. package/lib/config.js.map +1 -1
  6. package/lib/coverage.d.ts +4 -0
  7. package/lib/coverage.js +97 -87
  8. package/lib/coverage.js.map +1 -1
  9. package/lib/extensions.d.ts +4 -0
  10. package/lib/extensions.js +188 -200
  11. package/lib/extensions.js.map +1 -1
  12. package/lib/install.d.ts +2 -0
  13. package/lib/install.js +96 -81
  14. package/lib/install.js.map +1 -1
  15. package/lib/tools.d.ts +18 -0
  16. package/lib/tools.js +306 -386
  17. package/lib/tools.js.map +1 -1
  18. package/lib/utils.d.ts +15 -0
  19. package/lib/utils.js +205 -291
  20. package/lib/utils.js.map +1 -1
  21. package/package.json +66 -56
  22. package/src/config.ts +82 -82
  23. package/src/configs/brew_extensions +28 -0
  24. package/src/configs/php-versions.json +5 -5
  25. package/src/configs/phpunit.json +24 -24
  26. package/src/coverage.ts +146 -146
  27. package/src/extensions.ts +235 -233
  28. package/src/install.ts +104 -104
  29. package/src/scripts/darwin.sh +341 -339
  30. package/src/scripts/ext/gearman.sh +22 -22
  31. package/src/scripts/ext/phalcon.ps1 +55 -55
  32. package/src/scripts/ext/phalcon.sh +70 -70
  33. package/src/scripts/linux.sh +361 -361
  34. package/src/scripts/win32.ps1 +326 -333
  35. package/src/tools.ts +472 -469
  36. package/src/utils.ts +319 -316
  37. package/.eslintrc.json +0 -16
  38. package/.github/CODE_OF_CONDUCT.md +0 -76
  39. package/.github/CONTRIBUTING.md +0 -69
  40. package/.github/FUNDING.yml +0 -7
  41. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -23
  42. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  43. package/.github/PULL_REQUEST_TEMPLATE.md +0 -38
  44. package/.github/SECURITY.md +0 -29
  45. package/.github/workflows/main-workflow.yml +0 -56
  46. package/.github/workflows/node-workflow.yml +0 -47
  47. package/.idea/workspace.xml +0 -113
  48. package/.prettierrc.json +0 -12
  49. package/__tests__/config.test.ts +0 -52
  50. package/__tests__/coverage.test.ts +0 -110
  51. package/__tests__/extensions.test.ts +0 -120
  52. package/__tests__/install.test.ts +0 -181
  53. package/__tests__/tools.test.ts +0 -476
  54. package/__tests__/utils.test.ts +0 -213
  55. package/action.yml +0 -38
  56. package/dist/index.js +0 -2854
  57. package/examples/bedrock.yml +0 -32
  58. package/examples/cakephp-mysql.yml +0 -114
  59. package/examples/cakephp-postgres.yml +0 -112
  60. package/examples/cakephp.yml +0 -92
  61. package/examples/codeigniter.yml +0 -34
  62. package/examples/laravel-mysql.yml +0 -74
  63. package/examples/laravel-postgres.yml +0 -74
  64. package/examples/laravel.yml +0 -42
  65. package/examples/lumen-mysql.yml +0 -74
  66. package/examples/lumen-postgres.yml +0 -74
  67. package/examples/lumen.yml +0 -38
  68. package/examples/phalcon-mysql.yml +0 -74
  69. package/examples/phalcon-postgres.yml +0 -73
  70. package/examples/sage.yml +0 -57
  71. package/examples/slim-framework.yml +0 -34
  72. package/examples/symfony-mysql.yml +0 -56
  73. package/examples/symfony-postgres.yml +0 -54
  74. package/examples/symfony.yml +0 -39
  75. package/examples/yii2-mysql.yml +0 -73
  76. package/examples/yii2-postgres.yml +0 -71
  77. package/examples/zend-framework.yml +0 -36
  78. package/jest.config.js +0 -12
  79. package/lib/sapi.js +0 -64
  80. package/tsconfig.json +0 -18
@@ -1,36 +0,0 @@
1
- # GitHub Action for Zend Framework
2
- name: Testing Zend Framework
3
- on: [push, pull_request]
4
- jobs:
5
- build:
6
- strategy:
7
- matrix:
8
- operating-system: [ubuntu-latest, windows-latest, macos-latest]
9
- php-versions: ['7.2', '7.3', '7.4']
10
- runs-on: ${{ matrix.operating-system }}
11
- steps:
12
- - name: Checkout
13
- uses: actions/checkout@v2
14
- - name: Setup PHP, with composer and extensions
15
- uses: shivammathur/setup-php@v1 #https://github.com/shivammathur/setup-php
16
- with:
17
- php-version: ${{ matrix.php-versions }}
18
- extensions: mbstring, bcmath, curl, intl
19
- coverage: xdebug #optional
20
- - name: Get composer cache directory
21
- id: composer-cache
22
- run: echo "::set-output name=dir::$(composer config cache-files-dir)"
23
- - name: Cache composer dependencies
24
- uses: actions/cache@v2
25
- with:
26
- path: ${{ steps.composer-cache.outputs.dir }}
27
- # Use composer.json for key, if composer.lock is not committed.
28
- # key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
29
- key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
30
- restore-keys: ${{ runner.os }}-composer-
31
- - name: Install dependencies
32
- run: |
33
- composer install --no-progress --prefer-dist --optimize-autoloader
34
- composer require --dev phpunit/phpunit squizlabs/php_codesniffer zendframework/zend-test
35
- - name: Test with phpunit
36
- run: vendor/bin/phpunit --coverage-text
package/jest.config.js DELETED
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- clearMocks: true,
3
- moduleFileExtensions: ['js', 'ts'],
4
- testEnvironment: 'node',
5
- testMatch: ['**/*.test.ts'],
6
- testRunner: 'jest-circus/runner',
7
- transform: {
8
- '^.+\\.ts$': 'ts-jest'
9
- },
10
- verbose: true,
11
- collectCoverage: true
12
- };
package/lib/sapi.js DELETED
@@ -1,64 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.addSAPI = exports.getSapiList = void 0;
23
- const utils = __importStar(require("./utils"));
24
- async function getSapiList(sapi_csv) {
25
- const sapi_list = await utils.packageArray(sapi_csv);
26
- const servers = sapi_list.filter(sapi => /.*:.*/.test(sapi));
27
- return [servers[servers.length - 1]].concat(sapi_list.filter(sapi => /.*[^:].*/.test(sapi)));
28
- }
29
- exports.getSapiList = getSapiList;
30
- /**
31
- * Function to set sapi
32
- *
33
- * @param sapi_csv
34
- * @param os_version
35
- */
36
- async function addSAPI(sapi_csv, os_version) {
37
- let script = '\n' + (await utils.stepLog('Setup SAPI', os_version));
38
- let sapi_list;
39
- switch (true) {
40
- case sapi_csv.split(':').length - 1 > 1:
41
- sapi_list = await getSapiList(sapi_csv);
42
- script +=
43
- '\n' +
44
- utils.log('Multiple SAPI with web servers specified, choosing the last one ' +
45
- sapi_list[0], os_version, 'warning');
46
- break;
47
- default:
48
- sapi_list = await utils.packageArray(sapi_csv);
49
- }
50
- await utils.asyncForEach(sapi_list, async function (sapi) {
51
- sapi = sapi.toLowerCase();
52
- switch (os_version) {
53
- case 'linux':
54
- case 'darwin':
55
- script += '\nadd_sapi ' + sapi;
56
- break;
57
- case 'win32':
58
- script += '\nAdd-Sapi ' + sapi;
59
- break;
60
- }
61
- });
62
- return script;
63
- }
64
- exports.addSAPI = addSAPI;
package/tsconfig.json DELETED
@@ -1,18 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "esModuleInterop": true,
4
- "lib": [
5
- "ESNext"
6
- ],
7
- "module": "commonjs",
8
- "moduleResolution": "node",
9
- "noImplicitAny": true,
10
- "outDir": "./lib",
11
- "removeComments": true,
12
- "rootDir": "./src",
13
- "sourceMap": true,
14
- "strict": true,
15
- "target": "ESNext"
16
- },
17
- "exclude": ["__tests__", "lib", "node_modules"]
18
- }