# Continuous integration

[`cooldown check`](https://romnn.github.io/cooldown/docs/commands/check/) is a fail-closed gate — it exits non-zero when anything in the resolved graph is younger than its cooldown — which makes it a natural CI step. Add it to pull-request checks and a too-fresh dependency stops the merge until it either matures, is [fixed](https://romnn.github.io/cooldown/docs/commands/fix/), or is explicitly [baselined](https://romnn.github.io/cooldown/docs/commands/other/).

- **[GitHub Actions](https://romnn.github.io/cooldown/docs/ci/github-actions/)** — a complete workflow.

## What to run in CI

- **`cooldown check`** — the gate itself.
- **`--fresh`** — ignore the local cache and always hit the registry, so a CI run can't pass on a stale cached publish time.
- **`--transitive allow`** *(optional)* — if you want the whole graph evaluated but not every too-fresh transitive to block a merge, keep them visible but non-fatal.

```sh
cooldown check --fresh
```

The gate reads the committed lockfiles as-is, but it runs each tool's own lock check first, such as `uv lock --check` or `npm ci --dry-run`, to prove the lock is current. The CI runner therefore needs the package manager of every ecosystem the gate covers; when that check cannot run or fails, `check` exits `4`. Keep CI deterministic by committing your lockfiles.
