### Building ``` cargo build ``` ### Testing Make sure you have `~/.momento/credentials` and `~/.momento/config` files with the following data. `~/.momento/credentials` ``` [default] token= [YOUR_TEST_PROFILE] token= ``` `~/.momento/config` ``` [default] cache= ttl=600 [YOUR_TEST_PROFILE] cache= ttl=700 ``` ``` export TEST_CACHE_DEFAULT= export TEST_CACHE_WITH_PROFILE= export TEST_PROFILE= ./run_test_sequentially.sh cargo clippy --all-targets --all-features -- -D warnings ```
:warning: Important notes on running `cargo test --test configure_profiles_test` ``` export TEST_AUTH_TOKEN= cargo test --test configure_profile_test ``` - If you already have existing credentials and config files locally, running `cargo test --test configure_profiles_test` with provided `TEST_AUTH_TOKEN_DEFAULT` will overwrite the value for token in your `default` profile. - The value for `TEST_CACHE_DEFAULT` needs to match the cache value in your `default` profile and the cache needs to exist. However, this cache will be deleted after this test runs successfully. ### Deploying After merge a pull request (PR) will be created in this repo https://github.com/momentohq/homebrew-tap. Once the PR passes all checks, approve the PR and label it as `pr-pull`. It will then get automatically merged by the homebrew bot, and a release will be created for it.