setup-php 2.12.0 → 2.16.0

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 (113) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +977 -936
  3. package/package.json +66 -56
  4. package/src/config.ts +82 -82
  5. package/src/configs/brew_extensions +30 -0
  6. package/src/configs/os_releases.csv +17 -0
  7. package/src/configs/php-versions.json +6 -5
  8. package/src/configs/{php.json → pm/php.json} +29 -29
  9. package/src/configs/{phpunit.json → pm/phpunit.json} +24 -24
  10. package/src/configs/tools.json +256 -234
  11. package/src/configs/tools_schema.json +114 -103
  12. package/src/coverage.ts +169 -142
  13. package/src/extensions.ts +363 -349
  14. package/src/install.ts +79 -82
  15. package/src/scripts/common.sh +366 -314
  16. package/src/scripts/darwin.sh +257 -248
  17. package/src/scripts/ext/blackfire.ps1 +32 -32
  18. package/src/scripts/ext/blackfire.sh +22 -21
  19. package/src/scripts/ext/couchbase.sh +43 -43
  20. package/src/scripts/ext/cubrid.sh +60 -60
  21. package/src/scripts/ext/extension_map.php +109 -0
  22. package/src/scripts/ext/firebird.ps1 +19 -19
  23. package/src/scripts/ext/firebird.sh +39 -35
  24. package/src/scripts/ext/gearman.sh +22 -22
  25. package/src/scripts/ext/geos.sh +17 -17
  26. package/src/scripts/ext/http.ps1 +54 -54
  27. package/src/scripts/ext/http.sh +120 -120
  28. package/src/scripts/ext/intl.sh +23 -23
  29. package/src/scripts/ext/ioncube.ps1 +33 -32
  30. package/src/scripts/ext/ioncube.sh +21 -19
  31. package/src/scripts/ext/oci.ps1 +60 -60
  32. package/src/scripts/ext/oci.sh +65 -63
  33. package/src/scripts/ext/patches/firebird.sh +11 -11
  34. package/src/scripts/ext/patches/geos.sh +7 -7
  35. package/src/scripts/ext/patches/http.sh +11 -11
  36. package/src/scripts/ext/patches/pdo_oci.sh +6 -6
  37. package/src/scripts/ext/patches/phpize.sh +26 -26
  38. package/src/scripts/ext/patches/protobuf.sh +4 -4
  39. package/src/scripts/ext/phalcon.ps1 +54 -55
  40. package/src/scripts/ext/phalcon.sh +59 -59
  41. package/src/scripts/ext/source.sh +144 -144
  42. package/src/scripts/linux.sh +239 -280
  43. package/src/scripts/tools/add_tools.ps1 +28 -25
  44. package/src/scripts/tools/add_tools.sh +27 -19
  45. package/src/scripts/tools/blackfire.ps1 +19 -21
  46. package/src/scripts/tools/blackfire.sh +40 -35
  47. package/src/scripts/tools/grpc_php_plugin.ps1 +21 -21
  48. package/src/scripts/tools/grpc_php_plugin.sh +58 -61
  49. package/src/scripts/tools/ppa.sh +189 -0
  50. package/src/scripts/tools/protoc.ps1 +38 -38
  51. package/src/scripts/tools/protoc.sh +28 -28
  52. package/src/scripts/win32.ps1 +566 -471
  53. package/src/tools.ts +538 -509
  54. package/src/utils.ts +503 -497
  55. package/.eslintrc.json +0 -16
  56. package/.github/CODE_OF_CONDUCT.md +0 -76
  57. package/.github/CONTRIBUTING.md +0 -70
  58. package/.github/FUNDING.yml +0 -7
  59. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -42
  60. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -26
  61. package/.github/PULL_REQUEST_TEMPLATE.md +0 -37
  62. package/.github/SECURITY.md +0 -29
  63. package/.github/workflows/docs.yml +0 -77
  64. package/.github/workflows/node-workflow.yml +0 -51
  65. package/.github/workflows/workflow.yml +0 -78
  66. package/.idea/workspace.xml +0 -113
  67. package/.prettierrc.json +0 -12
  68. package/__tests__/config.test.ts +0 -52
  69. package/__tests__/coverage.test.ts +0 -110
  70. package/__tests__/extensions.test.ts +0 -261
  71. package/__tests__/install.test.ts +0 -175
  72. package/__tests__/tools.test.ts +0 -490
  73. package/__tests__/utils.test.ts +0 -303
  74. package/action.yml +0 -29
  75. package/dist/index.js +0 -3001
  76. package/examples/bedrock.yml +0 -32
  77. package/examples/blackfire-player.yml +0 -31
  78. package/examples/blackfire.yml +0 -31
  79. package/examples/cakephp-mysql.yml +0 -114
  80. package/examples/cakephp-postgres.yml +0 -112
  81. package/examples/cakephp.yml +0 -92
  82. package/examples/codeigniter.yml +0 -34
  83. package/examples/laravel-mysql.yml +0 -74
  84. package/examples/laravel-postgres.yml +0 -74
  85. package/examples/laravel.yml +0 -42
  86. package/examples/lumen-mysql.yml +0 -74
  87. package/examples/lumen-postgres.yml +0 -74
  88. package/examples/lumen.yml +0 -38
  89. package/examples/phalcon-mysql.yml +0 -74
  90. package/examples/phalcon-postgres.yml +0 -73
  91. package/examples/sage.yml +0 -57
  92. package/examples/slim-framework.yml +0 -34
  93. package/examples/symfony-mysql.yml +0 -57
  94. package/examples/symfony-postgres.yml +0 -55
  95. package/examples/symfony.yml +0 -39
  96. package/examples/yii2-mysql.yml +0 -73
  97. package/examples/yii2-postgres.yml +0 -71
  98. package/examples/zend-framework.yml +0 -36
  99. package/jest.config.js +0 -12
  100. package/lib/config.js +0 -72
  101. package/lib/config.js.map +0 -1
  102. package/lib/coverage.js +0 -88
  103. package/lib/coverage.js.map +0 -1
  104. package/lib/extensions.js +0 -201
  105. package/lib/extensions.js.map +0 -1
  106. package/lib/install.js +0 -82
  107. package/lib/install.js.map +0 -1
  108. package/lib/sapi.js +0 -64
  109. package/lib/tools.js +0 -387
  110. package/lib/tools.js.map +0 -1
  111. package/lib/utils.js +0 -292
  112. package/lib/utils.js.map +0 -1
  113. package/tsconfig.json +0 -18
package/.eslintrc.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "env": { "node": true, "jest": true },
3
- "parser": "@typescript-eslint/parser",
4
- "parserOptions": { "ecmaVersion": 2019, "sourceType": "module" },
5
- "extends": [
6
- "eslint:recommended",
7
- "plugin:@typescript-eslint/eslint-recommended",
8
- "plugin:@typescript-eslint/recommended",
9
- "plugin:import/errors",
10
- "plugin:import/warnings",
11
- "plugin:import/typescript",
12
- "plugin:prettier/recommended",
13
- "prettier"
14
- ],
15
- "plugins": ["@typescript-eslint", "jest"]
16
- }
@@ -1,76 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, sex characteristics, gender identity and expression,
9
- level of experience, education, socio-economic status, nationality, personal
10
- appearance, race, religion, or sexual identity and orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at contact@shivammathur.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
-
73
- [homepage]: https://www.contributor-covenant.org
74
-
75
- For answers to common questions about this code of conduct, see
76
- https://www.contributor-covenant.org/faq
@@ -1,70 +0,0 @@
1
- # Contributing to setup-php
2
-
3
- ## Contributor Code of Conduct
4
-
5
- Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
6
-
7
- ## Workflow
8
-
9
- * Fork the project.
10
- * Make your bug fix or feature addition.
11
- * Add tests for it, so we don't break it in a future version unintentionally.
12
- * If editing the scripts, create a demo integration test.
13
- * Send a pull request to the develop branch with all the details.
14
-
15
- Please make sure that you have [set up your user name and email address](https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup) for use with Git. Strings such as `silly nick name <root@localhost>` look really stupid in the commit history of a project.
16
-
17
- Due to time constraints, you may not always get a quick response. Please do not take delays personally and feel free to remind.
18
-
19
- ## Coding Guidelines
20
-
21
- ## Using setup-php from a Git checkout
22
-
23
- The following commands can be used to perform the initial checkout of setup-php:
24
-
25
- ```bash
26
- $ git clone https://github.com/shivammathur/setup-php.git
27
-
28
- $ cd setup-php
29
- ```
30
-
31
- Install setup-php dependencies using [npm](https://www.npmjs.com/):
32
-
33
- ```bash
34
- $ npm install
35
- ```
36
-
37
- If you are using `Windows` configure `git` to handle line endings.
38
-
39
- ```cmd
40
- git config --local core.autocrlf true
41
- ```
42
-
43
- This project comes with `.prettierrc.json` and `eslintrc.json` configuration files. Please run the following commands to fix and verify the code quality.
44
-
45
- ```bash
46
- $ npm run format
47
- $ npm run lint
48
- ```
49
-
50
- ## Running the test suite
51
-
52
- After following the steps shown above, The `setup-php` tests in the `__tests__` directory can be run using this command:
53
-
54
- ```bash
55
- $ npm test
56
- ```
57
-
58
- ## Creating a release
59
-
60
- Create a release before you push your changes.
61
-
62
- ```bash
63
- $ npm run release
64
- ```
65
-
66
- ## Reporting issues
67
-
68
- Please submit the issue using the appropriate template provided for a bug report or a feature request:
69
-
70
- * [Issues](https://github.com/shivammathur/setup-php/issues)
@@ -1,7 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- open_collective: setup-php
4
- tidelift: "npm/setup-php"
5
- community_bridge: setup-php
6
- patreon: shivammathur
7
- custom: https://www.paypal.me/shivammathur
@@ -1,42 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Nice, you found a bug!
4
- title: ''
5
- labels: 'bug'
6
- assignees: 'shivammathur'
7
-
8
- ---
9
-
10
- **Describe the bug**
11
- <!-- Please describe the bug concisely. -->
12
-
13
- **Version**
14
- - [ ] I have checked releases, and the bug exists in the latest patch version of `v1` or `v2`.
15
- - [ ] `v2`
16
- - [ ] `v1`
17
-
18
- **Runners**
19
- <!-- Please mark the GitHub Action runner your workflow uses. -->
20
- - [ ] GitHub Hosted
21
- - [ ] Self Hosted
22
-
23
- **Operating systems**
24
- <!-- Please mention the operating systems your workflow uses. -->
25
-
26
- **PHP versions**
27
- <!-- Please mention the PHP versions your workflow uses. -->
28
-
29
- **To Reproduce**
30
- <!-- Please provide the relevant steps of your workflow `.yml` file. -->
31
-
32
- **Expected behavior**
33
- <!-- A clear and concise description of what you expected to happen. -->
34
-
35
- **Screenshots/Logs**
36
- <!-- If applicable, add screenshots or logs to help explain your problem. -->
37
-
38
- **Additional context**
39
- <!-- Add any other context about the problem here. -->
40
-
41
- **Are you willing to submit a PR?**
42
- <!-- We accept pull requests targeting the develop branch. -->
@@ -1,26 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest a new feature
4
- title: ''
5
- labels: 'enhancement'
6
- assignees: 'shivammathur'
7
-
8
- ---
9
-
10
- **Describe the feature**
11
- <!-- Please describe concisely the feature you want to add. -->
12
-
13
- **Version**
14
- - [ ] I have checked releases, and the feature is missing in the latest patch version of `v2`.
15
-
16
- **Underlying issue**
17
- <!-- Please describe the issue this would solve. -->
18
-
19
- **Describe alternatives**
20
- <!-- Please mention any alternative solutions you've considered. -->
21
-
22
- **Additional context**
23
- <!-- Add any other context or screenshots about the feature request here. -->
24
-
25
- **Are you willing to submit a PR?**
26
- <!-- We accept pull requests targeting the develop branch. -->
@@ -1,37 +0,0 @@
1
- ---
2
- name: 🐞 Bug Fix, ⚙ Improvement or 🎉 New Feature
3
- about: You found a bug, want to improve something or add a new feature
4
- labels: bug or enhancement
5
-
6
- ---
7
-
8
- ## A Pull Request should be associated with a Discussion.
9
-
10
- > If you're fixing a bug, adding a new feature or improving something please provide the details in discussions,
11
- > so that the development can be pointed in the intended direction.
12
-
13
- Related discussion: <!-- Please link the related discussion -->
14
-
15
- > Further notes in [Contribution Guidelines](.github/CONTRIBUTING.md)
16
- > Thank you for your contribution.
17
-
18
- ### Description
19
-
20
- This PR [briefly explain what it does]
21
-
22
- > In case this PR introduced TypeScript/JavaScript code changes:
23
-
24
- - [ ] I have written test cases for the changes in this pull request
25
- - [ ] I have run `npm run format` before the commit.
26
- - [ ] I have run `npm run lint` before the commit.
27
- - [ ] I have run `npm run release` before the commit.
28
- - [ ] `npm test` returns with no unit test errors and all code covered.
29
-
30
- > In case this PR edits any scripts:
31
-
32
- - [ ] I have checked the edited scripts for syntax.
33
- - [ ] I have tested the changes in an integration test (If yes, provide workflow YAML and link).
34
-
35
- <!--
36
- - Please target the develop branch when submitting the pull request.
37
- -->
@@ -1,29 +0,0 @@
1
- # Security Policy
2
-
3
- ## Supported Versions
4
-
5
- The following versions of this project are supported for security updates.
6
-
7
- | Version | Supported |
8
- | ------- | ------------------ |
9
- | 1.11.x | :white_check_mark: |
10
- | 2.11.x | :white_check_mark: |
11
-
12
- ## Supported PHP Versions
13
-
14
- This security policy only applies to the latest patches of the following PHP versions.
15
-
16
- | Version | Supported |
17
- | ------- | ------------------ |
18
- | 7.3 | :white_check_mark: |
19
- | 7.4 | :white_check_mark: |
20
- | 8.0 | :white_check_mark: |
21
-
22
- ## Reporting a Vulnerability
23
-
24
- If you have found any issues that might have security implications in the versions supported, please send a report privately to [contact@shivammathur.com](mailto:contact@shivammathur.com).
25
- Do not report security reports publicly.
26
-
27
- ## Tidelift
28
-
29
- If you use this GitHub Action through a Tidelift subscription, please refer to [https://tidelift.com/security](https://tidelift.com/security).
@@ -1,77 +0,0 @@
1
- name: Docs workflow
2
- on:
3
- workflow_dispatch:
4
- schedule:
5
- - cron: '0 15 * * 6'
6
- jobs:
7
- create:
8
- name: Create
9
- runs-on: ${{ matrix.operating-system }}
10
- strategy:
11
- fail-fast: false
12
- matrix:
13
- operating-system: [ubuntu-20.04, ubuntu-18.04, windows-2019, macos-10.15]
14
- php-versions: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
15
- steps:
16
- - name: Setup PHP
17
- uses: shivammathur/setup-php@v2
18
- with:
19
- php-version: ${{ matrix.php-versions }}
20
- - name: Save unix
21
- env:
22
- file: php${{ matrix.php-versions }}-${{ matrix.operating-system }}.md
23
- version: ${{ matrix.php-versions }}
24
- if: matrix.operating-system != 'windows-2019'
25
- run: |
26
- echo "## PHP $version" >> "$file"
27
- printf "\n" >> "$file"
28
- echo "\`\`\`" >> "$file"
29
- php -m >> "$file"
30
- echo "\`\`\`" >> "$file"
31
- printf "\n" >> "$file"
32
- - name: Save Windows
33
- env:
34
- file: php${{ matrix.php-versions }}-${{ matrix.operating-system }}.md
35
- version: ${{ matrix.php-versions }}
36
- if: matrix.operating-system == 'windows-2019'
37
- run: |
38
- Write-Output "## PHP ${{ matrix.php-versions }}`n" | Out-File -FilePath "$env:file"
39
- Write-Output "``````" | Out-File -FilePath "$env:file" -Append
40
- php -m | Out-File -FilePath "$env:file" -Append
41
- Write-Output "```````n" | Out-File -FilePath "$env:file" -Append
42
- - uses: actions/upload-artifact@v2
43
- with:
44
- name: lists
45
- path: php${{ matrix.php-versions }}-${{ matrix.operating-system }}.md
46
- update:
47
- name: Update
48
- needs: create
49
- runs-on: ubuntu-latest
50
- steps:
51
- - name: Checkout
52
- uses: actions/checkout@v2
53
- with:
54
- repository: ${{ github.repository }}.wiki
55
- - uses: actions/download-artifact@v2
56
- with:
57
- path: ${{ github.workspace }}
58
- - name: Combine
59
- run: |
60
- git config --local user.email "${{ secrets.email }}"
61
- git config --local user.name "${{ github.repository_owner }}"
62
- for os in ubuntu-20.04 ubuntu-18.04 windows-2019 macos-10.15 macos-11.0; do
63
- echo "These are extensions which are loaded by default on the following PHP versions. More extensions which are available as packages and available on pecl are supported by setup-php. Refer to [php extension support](https://github.com/shivammathur/setup-php#heavy_plus_sign-php-extension-support) for more details." > Php-extensions-loaded-on-"$os".md
64
- for version in 5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1; do
65
- if [ "$os" = "macos-11.0" ]; then
66
- cat lists/php"$version"-macos-10.15.md >> Php-extensions-loaded-on-"$os".md
67
- else
68
- cat lists/php"$version"-"$os".md >> Php-extensions-loaded-on-"$os".md
69
- fi
70
- done
71
- done
72
- rm -rf ./lists
73
- if [ "$(git status --porcelain=v1 2>/dev/null | wc -l)" != "0" ]; then
74
- git add .
75
- git commit -m "Update PHP extensions on wiki - $(date +'%d-%m-%y')"
76
- git push -f https://${{ github.repository_owner }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.wiki.git master || true
77
- fi
@@ -1,51 +0,0 @@
1
- name: Node workflow
2
- on:
3
- pull_request:
4
- branches:
5
- - master
6
- - develop
7
- - verbose
8
- paths-ignore:
9
- - '**.md'
10
- - 'examples/**'
11
- push:
12
- branches:
13
- - master
14
- - develop
15
- - verbose
16
- paths-ignore:
17
- - '**.md'
18
- - 'examples/**'
19
- jobs:
20
- run:
21
- name: Run
22
- runs-on: ${{ matrix.operating-system }}
23
- strategy:
24
- fail-fast: false
25
- matrix:
26
- operating-system: [ubuntu-latest, windows-latest, macos-latest]
27
- steps:
28
- - name: Checkout
29
- uses: actions/checkout@v2
30
-
31
- - name: Setup Node.js 15.x
32
- uses: actions/setup-node@v1
33
- with:
34
- node-version: 15.x
35
-
36
- - name: Install dependencies
37
- run: npm install
38
-
39
- - name: Prettier Format Check
40
- run: npm run format-check
41
-
42
- - name: ESLint Check
43
- run: npm run lint
44
-
45
- - name: Run tests
46
- run: npm test
47
-
48
- - name: Send Coverage
49
- continue-on-error: true
50
- timeout-minutes: 1
51
- run: curl -s https://codecov.io/bash | bash -s -- -t ${{secrets.CODECOV_TOKEN}} -f coverage/lcov.info -n github-actions-codecov-${{ matrix.operating-system }}
@@ -1,78 +0,0 @@
1
- name: Main workflow
2
- on:
3
- workflow_dispatch:
4
- pull_request:
5
- branches:
6
- - master
7
- - develop
8
- - verbose
9
- paths-ignore:
10
- - '**.md'
11
- - 'examples/**'
12
- push:
13
- branches:
14
- - master
15
- - develop
16
- - verbose
17
- paths-ignore:
18
- - '**.md'
19
- - 'examples/**'
20
- jobs:
21
- run:
22
- name: Run
23
- runs-on: ${{ matrix.operating-system }}
24
- strategy:
25
- fail-fast: false
26
- matrix:
27
- operating-system: [ubuntu-20.04, ubuntu-18.04, windows-latest, macos-latest]
28
- php-versions: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
29
- env:
30
- extensions: xml, opcache, xdebug, pcov
31
- key: cache-v3
32
- steps:
33
- - name: Checkout
34
- uses: actions/checkout@v2
35
-
36
- - name: Setup cache environment
37
- id: cache-env
38
- uses: shivammathur/cache-extensions@develop
39
- with:
40
- php-version: ${{ matrix.php-versions }}
41
- extensions: ${{ env.extensions }}
42
- key: ${{ env.key }}
43
-
44
- - name: Cache extensions
45
- uses: actions/cache@v2
46
- with:
47
- path: ${{ steps.cache-env.outputs.dir }}
48
- key: ${{ steps.cache-env.outputs.key }}
49
- restore-keys: ${{ steps.cache-env.outputs.key }}
50
-
51
- - name: Setup PHP with extensions and custom config
52
- run: node dist/index.js
53
- env:
54
- php-version: ${{ matrix.php-versions }}
55
- extensions: ${{ env.extensions }}
56
- ini-values: post_max_size=256M, short_open_tag=On, date.timezone=Asia/Kolkata
57
-
58
- - name: Testing PHP version
59
- run: |
60
- php -v
61
- php -r "if(strpos(phpversion(), '${{ matrix.php-versions }}') === false) {throw new Exception('Wrong PHP version Installed');}"
62
-
63
- - name: Testing Composer version
64
- run: |
65
- composer -V
66
- php -r "if(strpos(@exec('composer -V'), 'Composer version') === false) {throw new Exception('Composer not found');}"
67
- - name: Testing Extensions
68
- run: |
69
- php -m
70
- php -r "if(! extension_loaded('xml')) {throw new Exception('xml not found');}"
71
- php -r "if(! extension_loaded('Xdebug')) {throw new Exception('Xdebug not found');}"
72
- php -r "if(phpversion()>=7.1 && ! extension_loaded('pcov')) {throw new Exception('PCOV not found');}"
73
- - name: Testing ini values
74
- run: |
75
- php -r "if(ini_get('memory_limit')!='-1') {throw new Exception('memory_limit not disabled');}"
76
- php -r "if(ini_get('post_max_size')!='256M') {throw new Exception('post_max_size not added');}"
77
- php -r "if(ini_get('short_open_tag')!=1) {throw new Exception('short_open_tag not added');}"
78
- php -r "if(ini_get('date.timezone')!='Asia/Kolkata') {throw new Exception('date.timezone not added');}"
@@ -1,113 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ChangeListManager">
4
- <list default="true" id="82af0fba-d071-4964-9882-cc25944a7c2c" name="Default Changelist" comment="" />
5
- <option name="SHOW_DIALOG" value="false" />
6
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
7
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
8
- <option name="LAST_RESOLUTION" value="IGNORE" />
9
- </component>
10
- <component name="ComposerSettings">
11
- <execution />
12
- </component>
13
- <component name="Git.Settings">
14
- <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
15
- </component>
16
- <component name="GitSEFilterConfiguration">
17
- <file-type-list>
18
- <filtered-out-file-type name="LOCAL_BRANCH" />
19
- <filtered-out-file-type name="REMOTE_BRANCH" />
20
- <filtered-out-file-type name="TAG" />
21
- <filtered-out-file-type name="COMMIT_BY_MESSAGE" />
22
- </file-type-list>
23
- </component>
24
- <component name="HighlightingSettingsPerFile">
25
- <setting file="file://$PROJECT_DIR$/src/scripts/ext/gearman.sh" root0="FORCE_HIGHLIGHTING" />
26
- <setting file="file://$PROJECT_DIR$/src/scripts/darwin.sh" root0="FORCE_HIGHLIGHTING" />
27
- <setting file="file://$PROJECT_DIR$/src/coverage.ts" root0="FORCE_HIGHLIGHTING" />
28
- <setting file="file://$PROJECT_DIR$/__tests__/tools.test.ts" root0="FORCE_HIGHLIGHTING" />
29
- <setting file="file://$PROJECT_DIR$/src/scripts/linux.sh" root0="FORCE_HIGHLIGHTING" />
30
- <setting file="file://$PROJECT_DIR$/src/extensions.ts" root0="FORCE_HIGHLIGHTING" />
31
- <setting file="file://$PROJECT_DIR$/__tests__/extensions.test.ts" root0="FORCE_HIGHLIGHTING" />
32
- <setting file="file://$PROJECT_DIR$/src/tools.ts" root0="FORCE_HIGHLIGHTING" />
33
- <setting file="file://$PROJECT_DIR$/examples/symfony-postgres.yml" root0="FORCE_HIGHLIGHTING" />
34
- </component>
35
- <component name="ProjectId" id="1v5alxYjYKBe12yF9yya0tL0XAA" />
36
- <component name="ProjectViewState">
37
- <option name="autoscrollToSource" value="true" />
38
- <option name="hideEmptyMiddlePackages" value="true" />
39
- <option name="showLibraryContents" value="true" />
40
- </component>
41
- <component name="PropertiesComponent">
42
- <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
43
- <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
44
- <property name="WebServerToolWindowFactoryState" value="false" />
45
- <property name="last_opened_file_path" value="$PROJECT_DIR$/src/configs/tools_schema.json" />
46
- <property name="node.js.detected.package.eslint" value="true" />
47
- <property name="node.js.selected.package.eslint" value="(autodetect)" />
48
- <property name="nodejs.jest.jest_package" value="$PROJECT_DIR$/node_modules/jest" />
49
- <property name="nodejs_package_manager_path" value="npm" />
50
- <property name="settings.editor.selected.configurable" value="preferences.fileTypes" />
51
- <property name="ts.external.directory.path" value="C:\Program Files\JetBrains\PhpStorm 2021.1\plugins\JavaScriptLanguage\jsLanguageServicesImpl\external" />
52
- <property name="vue.rearranger.settings.migration" value="true" />
53
- </component>
54
- <component name="RunManager">
55
- <configuration name="Tools tests.checking addTools with composer tool using user/tool as input" type="JavaScriptTestRunnerJest" temporary="true" nameIsGenerated="true">
56
- <node-interpreter value="project" />
57
- <node-options value="" />
58
- <jest-package value="$PROJECT_DIR$/node_modules/jest" />
59
- <working-dir value="$PROJECT_DIR$" />
60
- <envs />
61
- <scope-kind value="TEST" />
62
- <test-file value="$PROJECT_DIR$/__tests__/tools.test.ts" />
63
- <test-names>
64
- <test-name value="Tools tests" />
65
- <test-name value="checking addTools with composer tool using user/tool as input" />
66
- </test-names>
67
- <method v="2" />
68
- </configuration>
69
- <recent_temporary>
70
- <list>
71
- <item itemvalue="Jest.Tools tests.checking addTools with composer tool using user/tool as input" />
72
- </list>
73
- </recent_temporary>
74
- </component>
75
- <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
76
- <component name="TaskManager">
77
- <task active="true" id="Default" summary="Default task">
78
- <changelist id="82af0fba-d071-4964-9882-cc25944a7c2c" name="Default Changelist" comment="" />
79
- <created>1625854563740</created>
80
- <option name="number" value="Default" />
81
- <option name="presentableId" value="Default" />
82
- <updated>1625854563740</updated>
83
- <workItem from="1625854565882" duration="3503000" />
84
- <workItem from="1625870032798" duration="57755000" />
85
- <workItem from="1626122160654" duration="35617000" />
86
- <workItem from="1626250450941" duration="5049000" />
87
- <workItem from="1626425171956" duration="1534000" />
88
- <workItem from="1626483209825" duration="8146000" />
89
- <workItem from="1626868155512" duration="5854000" />
90
- <workItem from="1626890038877" duration="66000" />
91
- <workItem from="1626992358975" duration="12197000" />
92
- <workItem from="1627407126586" duration="44206000" />
93
- <workItem from="1627710921618" duration="9623000" />
94
- <workItem from="1627754207366" duration="28730000" />
95
- <workItem from="1627822147749" duration="24085000" />
96
- <workItem from="1628032146793" duration="18187000" />
97
- <workItem from="1628229789620" duration="14840000" />
98
- <workItem from="1628547990195" duration="920000" />
99
- <workItem from="1628557416080" duration="1543000" />
100
- <workItem from="1628620030289" duration="1971000" />
101
- <workItem from="1628649054902" duration="1797000" />
102
- <workItem from="1628765919140" duration="1056000" />
103
- <workItem from="1629003489449" duration="628000" />
104
- <workItem from="1629065460749" duration="47330000" />
105
- <workItem from="1629445653467" duration="31561000" />
106
- <workItem from="1629794649986" duration="10434000" />
107
- </task>
108
- <servers />
109
- </component>
110
- <component name="TypeScriptGeneratedFilesManager">
111
- <option name="version" value="3" />
112
- </component>
113
- </project>
package/.prettierrc.json DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "arrowParens": "avoid",
3
- "bracketSpacing": false,
4
- "endOfLine": "auto",
5
- "parser": "typescript",
6
- "printWidth": 80,
7
- "semi": true,
8
- "singleQuote": true,
9
- "tabWidth": 2,
10
- "trailingComma": "none",
11
- "useTabs": false
12
- }