Sviatoslav Abakumov
0bbee91078
Support all valid PHP version file values ( #1121 )
...
* Support all valid PHP version file values
Allow version files to use partial versions and aliases accepted by the
php-version input while preserving support for both plain .php-version
files and asdf-style php entries.
* Regenerate bundled action
---------
Co-authored-by: Shivam Mathur <shivam_jpr@hotmail.com >
2026-09-17 20:17:54 +05:30
Shivam Mathur
3ad6232c89
Preserve PowerShell return values in verbose mode
2026-09-12 00:32:55 +05:30
Shivam Mathur
250924180e
Add configurable verbosity and guarded shell tracing
2026-09-10 01:29:39 +05:30
Shivam Mathur
5825be4b77
Harden environment lookup
2026-05-18 00:56:40 +05:30
Shivam Mathur
eeef37e059
GHSA-pqwm-q9pv-ph8r - Fix CWE-78 [skip ci]
2026-05-14 08:58:36 +05:30
Shivam Mathur
106fd0866c
Strip backslash line continuation from extension inputs
2026-03-29 20:46:19 +05:30
Shivam Mathur
109ae4d1c0
Reduce bundle size
...
Replace @actions/core with local functions
@actions/core is unmaintained and poorly designed for projects that just need basic functions
2026-01-20 07:47:23 +05:30
Shivam Mathur
871ff01b2b
Refactor to use ES2024+ features for Node 24
...
Use Set for O(1) redirect status code lookup in fetch.ts
Use at(-1) and Object.hasOwn() in tools.ts
Use for...of with entries() in utils.ts
2026-01-20 06:46:28 +05:30
Shivam Mathur
5efa2a774e
Fix support to parse master in php-version input
2025-12-18 21:36:10 +05:30
Shivam Mathur
43e4e008cc
Add support for ibm extensions [skip ci]
2025-11-25 16:23:49 +05:30
Shivam Mathur
0f7f1d08e3
Upgrade to Jest 30
2025-06-13 02:06:31 +05:30
Shivam Mathur
b595b415e2
Add fallback for the manifest URL
2025-05-19 08:09:13 +05:30
Shivam Mathur
b6d8115f12
Add support for .tool-versions format in php-version-file
2024-12-23 15:27:22 +05:30
Shivam Mathur
84f76b1fc9
Add support for composer files in sub-directory
2024-12-23 14:36:14 +05:30
Shivam Mathur
43e870b2d0
Add highest alias as an alternative to latest
2024-01-01 01:26:40 +05:30
Dave Reid
1a102bc9f2
Update utils.ts
2023-12-07 09:44:35 -06:00
Jason Gill
95916a72b1
Only use config.platform.php, as it's guaranteed to be the required version of PHP
2023-07-29 19:48:28 -04:00
Jason Gill
a5fb328c6a
Add support for reading PHP version from composer.lock or composer.json
2023-07-29 19:46:06 -04:00
Shivam Mathur
0be6fa1958
Remove quotes after : in CSVArray
2023-06-12 15:27:21 +05:30
Shivam Mathur
035ef490b9
Rename resolveVersion to readPHPversion
2023-04-02 20:30:40 +05:30
Shivam Mathur
6bf279d08a
Fix reading php version from file
2023-04-02 20:25:49 +05:30
Shivam Mathur
f42145a164
Remove call to getManifestURL unless needed in utils.parseVersion
2023-01-29 21:53:23 +05:30
Shivam Mathur
9c411b6e2b
Minor refactor in utils.resolveVersion
2023-01-29 20:17:23 +05:30
Steve Lacey
b46c8e2a8c
Move php version default out of action.yml and update inputs #629 #690
2023-01-29 16:23:08 +08:00
Steve Lacey
fd03521cb4
Support .php-version file; closes #629
2023-01-29 13:41:50 +08:00
Viktor Ruskai
cc0e576689
Update utils.ts
2023-01-27 22:12:33 +01:00
Shivam Mathur
bbc65d999a
Fix extension logs
...
Refactor utils.addCommand
2023-01-18 09:00:28 +05:30
Shivam Mathur
3407e6019c
Quote ini values with equal sign
2022-12-15 05:32:32 +05:30
Shivam Mathur
050cb8061b
Add coverage driver version in logs
2022-06-30 17:36:40 +05:30
Shivam Mathur
4dc94c27cf
Refactor utils.fetch to a module and mock it with nock
...
Add redirect support in utils.fetch
2022-02-06 10:53:40 +05:30
Shivam Mathur
5acd006232
Fix second run in the same job
...
Refactor install.ts and its tests
2022-01-30 08:45:11 +05:30
Shivam Mathur
cad2a1bda3
Rename os_version => os
2022-01-29 05:29:58 +05:30
Shivam Mathur
63c7766312
Remove unnecessary writing of scripts to RUNNER_TOOL_CACHE
2022-01-29 04:40:49 +05:30
Shivam Mathur
a0a791cada
Add ini_file input to set base php.ini
2022-01-25 13:43:49 +05:30
Shivam Mathur
c38f1acc38
Fix potential exponential backtracking in regex in utils.parseExtensionSource
2022-01-22 02:25:58 +05:30
Shivam Mathur
a274bd910a
Fix to handle wrong pecl versions with hyphen
2021-12-08 04:56:29 +05:30
Shivam Mathur
d068c17d9e
Add support for nightly alias
2021-09-06 11:58:31 +05:30
Shivam Mathur
b2d037d560
Add support to remove all shared extensions
2021-08-28 12:17:23 +05:30
Shivam Mathur
8e80635955
Fix parsing extensions input if Zend OPcache is specified instead of opcache
2021-08-28 12:17:21 +05:30
Shivam Mathur
4bb4f1812c
Fix to make utils.readEnv more resilient to user input
2021-08-18 09:53:26 +05:30
Shivam Mathur
09e08a3554
More fixes in fetching tool versions
2021-07-14 14:17:32 +05:30
Shivam Mathur
14fa980966
Improve error handling in utils.fetch and its uses
...
Minor fixes in tests
Revert to ES2019
2021-07-09 11:26:38 +05:30
Shivam Mathur
39491a0fba
Add authorization header to GitHub API call when COMPOSER_TOKEN is set
2021-07-07 22:40:05 +05:30
Shivam Mathur
e1a9afe11c
Add support to specify major or major.minor versions for tools with GitHub repository
2021-07-07 22:40:03 +05:30
Shivam Mathur
6449431df2
Move tools config to tools.json
...
Refactor tools functions to use Records and object literals
2021-07-07 22:40:02 +05:30
Shivam Mathur
7e5351f399
Do not lowercase source extension input
...
Fix warnings in parseExtensionSource in utils.ts
Fix add_lib_log in source.sh
2021-04-21 04:38:37 +05:30
Shivam Mathur
fe944a16b5
Use EXTENSION_PATH to specify subdirectory in add_extension_from_source
2021-04-20 17:20:36 +05:30
Shivam Mathur
b3152daa8d
Add support for any git repository to compile extension from source
...
Add support for extensions in a subdirectory to compile from source
2021-04-15 16:54:32 +05:30
Shivam Mathur
fa18c2b29f
Remove bintray from manifest and win32.ps1
...
Fix JIT ini values in win32.ps1
2021-02-23 14:34:03 +05:30
Shivam Mathur
57c17e3349
Add support for pecl_http on Windows for PHP 7.1 to 8.0
2021-02-19 13:49:55 +05:30