Skip to main content

is_ci

Function is_ci 

Source
pub fn is_ci() -> bool
Expand description

Returns true when the process runs in CI.

The check is presence-only: CI, GITHUB_ACTIONS or GITLAB_CI set to any value (also an empty value) marks a CI run.