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

Include a DB Docker container and a Makefile #25

Merged
merged 3 commits into from
Mar 3, 2021
Merged

Conversation

patrislav
Copy link
Contributor

Abstract

This PR improves end-to-end testing by including a docker-compose.yml file and a Makefile to easily spin up a local environment.

Metadata

Related: #21

@patrislav patrislav self-assigned this Feb 26, 2021
func main() {
db, err := sql.Open("mysql", "root:terracost@tcp(localhost:33060)/terracost_test?multiStatements=true")
if err != nil {
panic(err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change it for a log.Fatalf I would say.

Same for the next one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

Copy link
Member

@xescugc xescugc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rs

@patrislav
Copy link
Contributor Author

Rebased

@patrislav patrislav merged commit 74dcbb5 into master Mar 3, 2021
@patrislav patrislav deleted the pk-makefile branch March 3, 2021 09:11
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.

2 participants