// guide

Continuous Integration (CI)

You may desire to run kprint check as a step on your CI to ensure the code is formatted.

GitHub Actions

See dprint/check: https://github.com/marketplace/actions/dprint-check-action

GitLab

See dprint-ci: https://gitlab.com/midnightexigent/dprint-ci

Others

It is easy to get kprint working on a CI by installing kprint then running kprint check.

For example:

npm install -g @kprint/kprint
kprint check

Or:

# replace X.X.X with the version of kprint to use
curl -fsSL https://dprint.kjanat.dev/install.sh | sh -s X.X.X >/dev/null 2>&1
$HOME/.dprint/bin/kprint check

Coloured Output

kprint colours its output by default, including in CI logs. Set NO_COLOR to turn colours off, or FORCE_COLOR to turn them back on in an environment that sets NO_COLOR. See Coloured Output for details.