4 Commits

Author SHA1 Message Date
google-labs-jules[bot]
a3e458a5fa feat: Enable local PHP setup outside GitHub Actions
This commit introduces a mechanism to use the setup-php scripts for configuring PHP environments on local Linux/Ubuntu machines.

Key changes:
- Added `src/local_installer.ts`: A Node.js script that takes command-line arguments to define the desired PHP setup (version, extensions, tools, INI settings) and generates a `run.sh` script.
- Added `src/local_utils.ts`: A utility module with functions adapted for local execution, removing dependencies on `@actions/core`. It supports fetching inputs from yargs/environment variables.
- Modified `src/fetch.ts`: Replaced `@actions/http-client` with `node-fetch` for compatibility.
- Updated `src/config.ts`, `src/coverage.ts`, `src/extensions.ts`, and `src/tools.ts` to import utilities from `local_utils.ts` instead of `utils.ts`.
- Added `LOCAL_SETUP_INSTRUCTIONS.md`: Comprehensive documentation on prerequisites, how to run the local installer, command-line options, and troubleshooting.

This allows users to leverage the robust PHP environment configuration capabilities of this project directly on their development machines.
2025-06-24 06:07:03 +00:00
Shivam Mathur
9855c76987
Set keepAlive to false. After Node 19 it is true by default. 2023-10-30 01:38:35 +05:30
Shivam Mathur
0533892eb4
Fix jsdoc in fetch.ts 2022-05-30 07:52:30 +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