dj-pearson/rowshape validate
Validate a database migration against production-shaped data and gate CI on the verdict.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| fixture | Path to the committed rowshape.yaml fixture. | no | rowshape.yaml |
| migrations | Migration .sql file or directory to validate. | no | migrations |
| ephemeral | Admin connection URL for a disposable Postgres (e.g. a CI services container). validate creates a throwaway database, hydrates the fixture into it, applies the migration, and drops it. No production credential. | no | "" |
| target | Validate against this live database URL instead of hydrating (its data is ground truth). Mutually exclusive with `ephemeral`. | no | "" |
| warn-as-fail | Fail the job on a WARN-only verdict (default false — WARN informs but does not block). | no | false |
| json | Capture the machine-readable JSON verdict to a file for downstream steps. | no | true |
| runner | Override migration runner detection (alembic|prisma|drizzle|rawsql). | no | "" |
| seed | Deterministic hydration seed. | no | "" |
| scale | Fraction of declared rows to hydrate (default 1.0). | no | "" |
| args | Extra space-separated flags passed through to `rowshape validate`. | no | "" |
| version | rowshape release to install (e.g. v1.2.3). Default 'latest'. Ignored when `binary` is set. | no | latest |
| binary | Path to a prebuilt rowshape binary. When set, the install step is skipped — use this if you install rowshape yourself (brew/go install) or in tests. | no | "" |
| repo | GitHub repo to download the release from (advanced; default rowshape/rowshape). | no | rowshape/rowshape |
Outputs
| name | description |
|---|---|
| verdict | The verdict — PASS, WARN, or FAIL (empty on a tool error). |
| exit-code | The raw `rowshape validate` exit code (0 PASS, 1 FAIL, 2 WARN, 3 tool error). |
| verdict-json | Path to the captured JSON verdict file (when json=true). |