-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from momentohq/update-readme
chore: update readmes
- Loading branch information
Showing
8 changed files
with
377 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Push to Main | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
readme: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }} | ||
|
||
- name: Generate README | ||
uses: momentohq/standards-and-practices/github-actions/generate-and-commit-oss-readme@gh-actions-v2 | ||
with: | ||
project_status: official | ||
project_stability: beta | ||
project_type: other | ||
template_file: README.template.md | ||
output_file: README.md | ||
|
||
- name: Generate CONTRIBUTING | ||
uses: momentohq/standards-and-practices/github-actions/generate-and-commit-oss-readme@gh-actions-v2 | ||
with: | ||
project_status: official | ||
project_stability: beta | ||
project_type: other | ||
template_file: CONTRIBUTING.template.md | ||
output_file: CONTRIBUTING.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{{ ossHeader }} | ||
|
||
# Welcome to the Momento Go-Redis contributing guide :wave: | ||
|
||
Thank you for taking your time to contribute to our Momento `go-redis` wrapper! | ||
<br/> | ||
This guide will provide you information to start your own development and testing. | ||
<br/> | ||
Happy coding :dancer: | ||
<br/> | ||
|
||
## Submitting | ||
|
||
If you've found a bug or have a suggestion, please [open an issue in our project](https://github.com/momentohq/terraform-provider-momento/issues). | ||
|
||
If you want to submit a change, please [submit a pull request to our project](https://github.com/momentohq/terraform-provider-momento/pulls). Use the normal [Github pull request process](https://docs.github.com/en/pull-requests). | ||
|
||
## Requirements :coffee: | ||
|
||
- [Go 1.18 or above](https://go.dev/doc/install) is required | ||
- A Momento API key is required, you can generate one using the [Momento Console](https://console.gomomento.com) | ||
|
||
## Developing :computer: | ||
|
||
### Build | ||
|
||
```bash | ||
make build | ||
``` | ||
|
||
### Formatting and Tidy :flashlight: | ||
|
||
```bash | ||
make lint | ||
``` | ||
|
||
## Tests :zap: | ||
|
||
### Run integration tests against Momento | ||
|
||
```bash | ||
export TEST_AUTH_TOKEN=<YOUR_AUTH_TOKEN> | ||
make test-momento | ||
``` | ||
|
||
### Run integration tests against Redis | ||
|
||
First run Redis either natively, run Redis in a Docker container, or do your development in a devcontainer. Here is an example of running Redis in a Docker container: | ||
|
||
```bash | ||
docker run -it -p 6379:6379 redis | ||
``` | ||
|
||
Then run the tests | ||
|
||
```bash | ||
make test-redis | ||
``` | ||
|
||
This assumes the Redis server is running on `localhost:6379`. | ||
|
||
By running Redis on the local host, you can use the `redis-cli` to inspect the state of the Redis server as well as interactively debug the tests. | ||
|
||
### Run all tests | ||
|
||
This will run both the integration tests against Momento and Redis. As above, we assume the Redis server is running on `localhost:6379`. | ||
|
||
```bash | ||
export TEST_AUTH_TOKEN=<YOUR_AUTH_TOKEN> | ||
make test | ||
``` | ||
|
||
{{ ossFooter }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.