Skip to content

Initializes project with serverless tinker setup#4

Merged
datpmwork merged 15 commits intomainfrom
feat-tinker
Aug 19, 2025
Merged

Initializes project with serverless tinker setup#4
datpmwork merged 15 commits intomainfrom
feat-tinker

Conversation

@datpmwork
Copy link
Owner

No description provided.

datpmwork and others added 15 commits August 16, 2025 21:05
Sets up the initial project structure for a serverless tinker environment.

- Adds .dockerignore to exclude vendor directories.
- Configures funding information.
- Creates run-tests workflow for CI.
- Adds CHANGELOG.md.
- Configures composer.json with project details and dependencies.
- Renames config/skeleton.php to config/sls-tinker.php.
- Adds public/index.html for act logs viewer.
- Updates README.md with project details.
- Configures commands and service providers.
- Introduces Lambda related components.
Updates the testing setup to correctly install and test the local package within a Laravel application.

- Adds the `package/` directory to `.dockerignore` to prevent including it in the initial build context.
- Modifies the workflow to create a Laravel application in a subdirectory called `app`,
  then installs the package from the local path within that application.
- Fixes an issue where the port was incorrectly calculated in the test workflow.
- Updates paths and working directories to reflect the new structure.
- Adds a new Dockerfile for testing.
- Upgrades pest dependencies to allow v2 and v3.
Updates the checkout path for the package code in the workflow
to be relative.

This ensures the workflow functions correctly regardless of the
specific directory it is run from.
Sets up a comprehensive CI workflow to run tests against different combinations of PHP versions, Laravel versions, and serverless platforms (Vapor and Bref).

This ensures compatibility and stability across various deployment environments.
It creates separate Docker images for each platform to properly simulate lambda environments.

The workflow also installs the package from a local path to facilitate testing during development.
Ensures a clean environment for composer install during CI, preventing potential issues caused by outdated cached files.
This commit introduces platform support for both Vapor and Bref, allowing the package to be used seamlessly with either serverless environment.

It achieves this by:

- Introducing a configuration option to specify the platform ('bref' or 'vapor').
- Modifying the Lambda invocation result handling to correctly parse the output format for each platform.
- Adjusting the environment variable name and test execution to account for different platforms.
- Updating the README to provide a more comprehensive overview of the package and its features.

This change enhances the package's usability and makes it more versatile for different serverless deployments.
Moves the test logic into a reusable composite action. This allows for cleaner and more maintainable workflow definitions.
The main workflow now calls the composite action for each platform.
Updates the workflow to use the test action located within the 'package' directory.

This ensures that the correct test action is used, especially in a monorepo setup where multiple packages might have their own test actions.
Updates the funding section in README.md to point to the GitHub Sponsors page.

This simplifies the support information and directs users to the
official GitHub sponsorship platform.
@datpmwork datpmwork merged commit 81da962 into main Aug 19, 2025
42 checks passed
@datpmwork datpmwork deleted the feat-tinker branch August 19, 2025 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant