-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add support for woodpecker CI (#3)
- Loading branch information
1 parent
ea7ad60
commit e3636de
Showing
4 changed files
with
40 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
.PHONY: install-tools lint test test-verbose format | ||
.PHONY: install-tools lint test test-verbose format help | ||
|
||
install-tools: | ||
# Install linting tools | ||
help: | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
install-tools: ## Install linting tools | ||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.49.0 | ||
go install mvdan.cc/gofumpt@latest | ||
go install github.com/segmentio/golines@latest | ||
|
||
lint: | ||
lint: ## Run golangci linter | ||
golangci-lint run -c ./golangci.yml ./... | ||
|
||
format: | ||
format: ## Format code | ||
gofumpt -l -w -extra . | ||
golines . -w | ||
|
||
test: | ||
test: ## Run tests | ||
go test -race -test.timeout 120s -count=1 ./... | ||
|
||
test-verbose: | ||
test-verbose: ## Run tests with verbose output | ||
go test -race -test.timeout 120s -v -cover -count=1 ./... |
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