-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
54 additions
and
58 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 |
---|---|---|
|
@@ -8,13 +8,9 @@ check-generation: ## Check files are generated locally | |
@sh ./scripts/check-generation.sh | ||
|
||
.PHONY: clean | ||
clean: down ## Clean the project locally | ||
clean: local-env/stop ## Clean the project locally | ||
@rm -rf ./tmp/certs | ||
|
||
.PHONY: down | ||
down: ## Stop the local environment | ||
@docker-compose down | ||
|
||
.PHONY: generate | ||
generate: ## Generate files locally | ||
@go generate ./... | ||
|
@@ -23,15 +19,19 @@ generate: ## Generate files locally | |
lint: ## Lint the code locally | ||
@go run github.com/golangci/golangci-lint/cmd/[email protected] run ./... | ||
|
||
.PHONY: local-env/start | ||
local-env/start: ## Start the local environment | ||
@go run ./tools/generate-certs | ||
@docker-compose local-env/start -d | ||
|
||
.PHONY: local-env/stop | ||
local-env/stop: ## Stop the local environment | ||
@docker-compose local-env/stop | ||
|
||
.PHONY: publish | ||
publish: dagger/publish ## Publish with tag on git, docker hub, etc. locally | ||
@git tag ${TAG} && git push origin ${TAG} | ||
|
||
.PHONY: test | ||
test: up ## Perform tests locally | ||
@go test ./... | ||
|
||
.PHONY: up | ||
up: ## Start the local environment | ||
@go run ./tools/generate-certs | ||
@docker-compose up -d | ||
test: local-env/start ## Perform tests locally | ||
@go test ./... |
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
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