# Run local YDB in CI with local-ydb-toolkit

Use `astandrik/setup-local-ydb@v1` when a GitHub Actions workflow needs a disposable local YDB tenant for integration tests.

## Example

```yaml
- uses: astandrik/setup-local-ydb@v1
  id: ydb
  with:
    version: 26.1.1.6
    tenant: /local/test

- run: |
    echo "$LOCAL_YDB_ENDPOINT"
    echo "$LOCAL_YDB_DATABASE"
```

## When to use it

- Test code that expects a real YDB endpoint.
- Run schema smoke tests against an isolated tenant.
- Validate auth-enabled behavior without reusing developer credentials.
