-
-
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.
Files are moved to avoid any confusion between the CI and potential dagger module that could be used inside another CI for code generation.
- Loading branch information
Showing
23 changed files
with
107 additions
and
8,785 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 |
---|---|---|
@@ -1,8 +1,37 @@ | ||
include tools/make/cmd.mk | ||
include tools/make/dagger.mk | ||
include tools/make/help.mk | ||
include tools/make/local.mk | ||
|
||
# For more information on how to execute this Makefile, please execute the following command: | ||
# | ||
# make help | ||
.PHONY: all | ||
all: check-generation lint test ## Run all the checks locally | ||
|
||
.PHONY: check-generation | ||
check-generation: ## Check files are generated locally | ||
@sh ./scripts/check-generation.sh | ||
|
||
.PHONY: clean | ||
clean: down ## 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 ./... | ||
|
||
.PHONY: lint | ||
lint: ## Lint the code locally | ||
@go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55 run ./... | ||
|
||
.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 |
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,27 @@ | ||
include ../../tools/make/help.mk | ||
|
||
SRC_DIR := ../.. | ||
|
||
.PHONY: all | ||
all: ## Run all the checks before commit on Dagger | ||
@dagger call check --src-dir $(SRC_DIR) | ||
|
||
.PHONY: examples | ||
examples: ## Run all the examples on Dagger | ||
@dagger call examples --src-dir $(SRC_DIR) | ||
|
||
.PHONY: check-generation | ||
check-generation: ## Check files are generated on Dagger | ||
@dagger call check-generation --src-dir $(SRC_DIR) | ||
|
||
.PHONY: lint | ||
lint: ## Lint the code on Dagger | ||
@dagger call lint --src-dir $(SRC_DIR) | ||
|
||
.PHONY: publish | ||
publish: ## Publish with tag on git, docker hub, etc. on Dagger | ||
@dagger call publish --src-dir $(SRC_DIR) --ssh-dir=~/.ssh | ||
|
||
.PHONY: test | ||
test: ## Perform tests on Dagger | ||
@dagger call tests --src-dir $(SRC_DIR) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.