Skip to content

Commit

Permalink
chore: add target to run the server
Browse files Browse the repository at this point in the history
  • Loading branch information
posilva committed May 14, 2023
1 parent 15b5ced commit 9ada3cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: fmt test cover infra-up infra-up infra-test infra-local infra-local-down infra-upd lint
.PHONY: run fmt test cover infra-up infra-up infra-test infra-local infra-local-down infra-upd lint

# This assumes tflocal is installed https://github.com/localstack/terraform-local

Expand All @@ -25,7 +25,7 @@ infra-local-down:
cd terraform && export TF_LOG=INFO && tflocal destroy -auto-approve

fmt:
go fmt && cd terraform && terraform fmt
go fmt ./... && cd terraform && terraform fmt

lint:
golangci-lint run
Expand All @@ -35,3 +35,6 @@ test:

cover: test
go tool cover -html=cover.out -o coverage.html

run: fmt lint
go run ./cmd/simplechat/main.go
12 changes: 6 additions & 6 deletions terraform/providers.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
provider "aws" {
region = "us-east-1"
access_key = "test"
secret_key = "test"
skip_credentials_validation = true
skip_metadata_api_check = true
provider "aws" {
region = "us-east-1"
access_key = "test"
secret_key = "test"
skip_credentials_validation = true
skip_metadata_api_check = true
}

0 comments on commit 9ada3cf

Please sign in to comment.