spawn check
Usage
spawn check What it checks
Section titled “What it checks”Unpinned migrations
Section titled “Unpinned migrations”Reports any migration that has an up.sql but no lock.toml. Unpinned migrations are not reproducible because they resolve components from the current working tree rather than from a pinned snapshot.
To fix, pin the migration using spawn migration pin:
spawn migration pin <migration-name>A non-zero exit makes spawn check suitable as a pipeline gate:
# GitHub Actions example- name: Check migrations run: spawn checkOptions
| Option | Description |
|---|---|
--target <name> | Select which target from spawn.toml to use. |
--config-file <path> | Path to config file. Defaults to spawn.toml. |
-d, --debug | Turn on debug output. |
Exit status
| Code | Meaning |
|---|---|
0 | No warnings found. |
1 | One or more warnings found. |