MongoDB instrument to measure the performance of queries directly in the CI
How to set up a MongoDB instance in your CI environment?
art049/mongodb-cluster-action
to run MongoDB in your CI environmenttestcontainers
or
vitest-mongodb
mongodb
instrument in the CodSpeed Actionmongo-uri-env-name
If using the mongo-uri-env-name
option, make sure to set the actual value of
the environment variable in the env
section of your workflow file. Otherwise,
the MongoDB instrument will not be able to connect to your MongoDB instance.mongo-uri-env-name
option and provide the connection string
dynamically during the setup phase of your benchmarks.mongo-uri-env-name
option, the integration should work
out of the box at this stage 🎉However, if you are not using the mongo-uri-env-name
option, you will have to
provide the connection string dynamically during the setup phase of your
benchmarks. Select your language below to see how to do that.