# Direct Delivery Update Script

## Config
```
cp .env.shadow .env
```
Fill in some dev/testing config values.

## Running

```bash
cd direct_delivery_update
docker compose up --build direct-delivery-update
```

## Linting and Testing

Run the full lint and test suite (PHPCodeSniffer, PHPStan, yamllint, PHPUnit):

```bash
docker compose run --rm --build lint-and-test
```

To skip linting and run tests only:

```bash
SKIP_LINT=1 docker compose run --rm --build lint-and-test
```

## Update the lockfile


```bash
docker compose run --rm --build update-lockfile
```

### Tools
| Tool | Config file | Purpose |
|---|---|---|
| PHP CodeSniffer | `phpcs.xml` | PSR-12 code style |
| PHPStan | `phpstan.neon` | Static analysis (level 5) |
| yamllint | `.yamllint` | YAML file validation |
| PHPUnit | `phpunit.xml` | Unit tests (`tests/`) |

