CI/CD Integration
Run Monito tests in your CI/CD pipeline.
Setup
- Generate a token: run
monito-cli auth tokenlocally and copy the output - Add
MONITO_TOKENas a secret in your CI environment - Install the CLI and run your tests
GitHub Actions
The project run command exits with code 1 if any test fails, which fails the CI step.
GitLab CI
Exit Codes
| Code | Meaning | CI Result |
|---|---|---|
0 | All tests passed | Pass |
1 | One or more tests failed | Fail |
2 | CLI error (auth failure, bad input) | Fail |
Running Without Wait
If you want to trigger tests but not block the pipeline:
This triggers the runs and exits immediately with the run IDs.
Running Individual Scenarios
This is useful for running specific tests in different pipeline stages.