Skip to content

Commit 0f4b774

Browse files
authored
Add Copilot instructions (#366)
1 parent b515972 commit 0f4b774

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/copilot-instructions.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
This repository contains the Durable Workflow package for Laravel. It is a Composer library that implements durable, long-running workflows and activities in PHP.
2+
3+
When making changes in this repository:
4+
5+
- Keep changes focused and avoid unrelated refactors.
6+
- Follow the existing PHP style: add `declare(strict_types=1);` to PHP files and keep code PSR-12 compatible.
7+
- Preserve the existing architecture around `Workflow`, `Activity`, workflow stubs, signals, and generator-based workflow execution.
8+
- Add or update PHPUnit tests when behavior changes. Keep unit tests in `tests/Unit` and integration-style coverage in `tests/Feature`.
9+
- Validate changes with the project quality cycle from the repository root:
10+
1. `composer ecs`
11+
2. `composer stan`
12+
3. `composer unit`
13+
4. `composer coverage`
14+
5. `composer feature`
15+
- Treat `composer coverage` as a hard requirement: unit-test coverage must remain at 100%.
16+
- Prefer solutions that stay compatible with the supported Laravel versions declared in `composer.json`.

0 commit comments

Comments
 (0)