-
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.
Add security board and code to OpenPositionAction (#12)
* Add security board and code to OpenPositionAction * Fix lint
- Loading branch information
1 parent
7795fa2
commit eb2a4bd
Showing
3 changed files
with
24 additions
and
5 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 |
---|---|---|
|
@@ -10,4 +10,4 @@ jobs: | |
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: v1.53.3 | ||
version: v1.55.2 |
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,11 +1,28 @@ | ||
lint: | ||
.PHONY: help lint test doc | ||
.DEFAULT_GOAL := help | ||
|
||
help: | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
pre-push: lint test ## Run golang lint and test | ||
|
||
lint: ## Run golang lint using docker | ||
go mod download | ||
docker run --rm \ | ||
-v ${GOPATH}/pkg/mod:/go/pkg/mod \ | ||
-v ${PWD}:/app \ | ||
-w /app \ | ||
golangci/golangci-lint:v1.53.3 \ | ||
golangci/golangci-lint:v1.55.2 \ | ||
golangci-lint run -v --modules-download-mode=readonly | ||
|
||
test: | ||
GOARCH=amd64 go test ./... | ||
test: ## Run tests | ||
GOARCH=amd64 go test ./... | ||
|
||
doc: ## Run doc server using docker | ||
@echo "Doc server runs on http://127.0.0.1:6060" | ||
docker run --rm \ | ||
-p 127.0.0.1:6060:6060 \ | ||
-v ${PWD}:/go/src/github.com/evsamsonov/trengin \ | ||
-w /go/src/github.com/evsamsonov/trengin \ | ||
golang:latest \ | ||
bash -c "go install golang.org/x/tools/cmd/godoc@latest && /go/bin/godoc -http=:6060" |
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