// guide

Continuous Integration (CI)

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

GitHub Action

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 dprint working on a CI by installing dprint then running dprint check.

For example:

npm install -g dprint
dprint check

Or:

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

Coloured Output

dprint 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.