How to test Canton bootstrap script non-interactively in a ci job?

I’d like to test if a Canton script works in a CI job, so I need something which returns a nonzero error code on failure (e.g. if the script has invalid syntax, or causes runtime exception).

1 Like

Hi Richard, you can use the headless script mode to run Canton, which exits with a non-zero exit code if the bootstrap script fails. This is the best way to run Canton as part of testing in CI.

3 Likes