package.json:
package.json
.circleci/config.yml in your repository with the
following contents:
config.yml
Authentication
To run any commands, you must authenticate with Momentic. Set theMOMENTIC_API_KEY environment variable in your CircleCI project settings.
- Create an API key in the Momentic dashboard.

- Go to your CircleCI project settings and click the Environment Variables
tab. Create a new secret called
MOMENTIC_API_KEYand enter your API key.


- CircleCI automatically loads environment variables stored in project settings into the CI environment. The CI file needs no changes.
Sharding
If you have a large test set, use sharding to run tests in parallel across CI jobs and shorten total run time. To shard your tests, pass the--shard-index and --shard-count options to the
momentic run command. The --shard-index is the index of the current shard
(starting from 1), and --shard-count is the total number of shards.
To collect test results inside a single run group in the Momentic dashboard, add
a separate step after all tests complete to merge and upload results.
config.yml