-
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.
- Loading branch information
1 parent
3ac1fc0
commit b5e0ead
Showing
5 changed files
with
50 additions
and
4 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 |
---|---|---|
|
@@ -39,4 +39,4 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-go- | ||
# Run tests | ||
- run: go test | ||
- run: make 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[run] | ||
timeout = "120s" | ||
|
||
[output] | ||
format = "colored-line-number" | ||
|
||
[linters] | ||
enable = [ | ||
"deadcode", | ||
"errcheck", | ||
"goconst", | ||
"gocyclo", | ||
"gofumpt" | ||
"goimports", | ||
"golint", | ||
"ineffassign", | ||
"interfacer", | ||
"misspell", | ||
"nakedret", | ||
"unconvert", | ||
"unparam", | ||
"unused", | ||
"varcheck", | ||
"vet", | ||
"vetshadow", | ||
] | ||
|
||
[issues] | ||
exclude-use-default = false |
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,2 +1,16 @@ | ||
test: | ||
docker-compose up | ||
dev: | ||
docker compose build | ||
docker compose up --abort-on-container-exit | ||
|
||
test: fmt | ||
go test | ||
|
||
fmt: | ||
go fmt ./... | ||
|
||
LINTER := $(shell command -v $(shell go env GOPATH)/bin/golangci-lint 2> /dev/null) | ||
lint: | ||
ifndef LINTER | ||
go get github.com/golangci/golangci-lint/cmd/[email protected] | ||
endif | ||
$(shell go env GOPATH)/bin/golangci-lint run ./... |
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