Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add integration tests using Testcontainers for Redis #32

Merged
merged 2 commits into from
Jan 18, 2025
Merged

Conversation

appleboy
Copy link
Member

  • Update Go version from 1.20 to 1.22
  • Add github.com/testcontainers/testcontainers-go dependency
  • Add multiple indirect dependencies including dario.cat/mergo, github.com/Azure/go-ansiterm, github.com/Microsoft/go-winio, and others
  • Add require and testcontainers packages to redis_test.go
  • Add a new test TestWithRedis to redis_test.go using testcontainers to set up a Redis container for testing

- Update Go version from 1.20 to 1.22
- Add `github.com/testcontainers/testcontainers-go` dependency
- Add multiple indirect dependencies including `dario.cat/mergo`, `github.com/Azure/go-ansiterm`, `github.com/Microsoft/go-winio`, and others
- Add `require` and `testcontainers` packages to `redis_test.go`
- Add a new test `TestWithRedis` to `redis_test.go` using `testcontainers` to set up a Redis container for testing

Signed-off-by: appleboy <appleboy.tw@gmail.com>
- Remove support for Go versions 1.20 and 1.21 in the GitHub Actions workflow

Signed-off-by: appleboy <appleboy.tw@gmail.com>
@appleboy appleboy merged commit 529479a into main Jan 18, 2025
2 of 4 checks passed
@appleboy appleboy deleted the redis branch January 18, 2025 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant