1 unstable release

0.1.0 Nov 19, 2024

#359 in Testing

24 downloads per month

MIT license

2KB

RiCI?

Running in Continuous Integration?

What is this?

This is a simple tool to check if the current code is running in a CI environment. It is useful to adjust some behaviors of your code when running in CI.

How to use?

Just install the crate and use the rici function to check if the code is running in a CI environment.

use rici::rici;

fn main() {
    if rici() {
        println!("Running in CI");
    } else {
        println!("Not running in CI");
    }
}

Supported CI environments

  • GitHub Actions

More CI environments will be supported in the future.

No runtime deps