Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# AGENTS.md

Guidelines for AI agents working in this repository.

## Commands

All commands are executed via `make`.

```bash
make <target> [VARIABLE=value ...]
```

### Variables

| Variable | Description |
|---|---|
| `NO_TTY=1` | **Always pass this** — there is no interactive terminal |
| `ARGS="..."` | Extra arguments passed to the underlying tool |
| `PHP_VERSION=8.3` | Override PHP version (default: 8.4) |

### Targets

| Target | Description |
|---|---|
| `make test` | Run PHPUnit tests (alias for `make phpunit`) |
| `make phpunit` | Run PHPUnit tests |
| `make coverage` | Generate HTML coverage report to `runtime/coverage/` |
| `make infection` | Run mutation testing with Infection (alias: `make mutation`) |
| `make psalm` | Run Psalm static analysis |
| `make php-cs-fixer` | Fix code style with PHP-CS-Fixer (alias: `make cs-fix`) |
| `make composer` | Run Composer |
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PHP_VERSION ?= 8.4
-include .env.local

DOCKER_RUN := docker run --rm -it \
DOCKER_RUN := docker run --rm $(if $(NO_TTY),,-it) \
--init \
--user $(shell id -u):$(shell id -g) \
--env YII_INSIDE_CONTAINER=true \
Expand Down
Loading