mirror of
https://github.com/davegallant/vpngate.git
synced 2025-11-26 03:14:15 +00:00
* Update golangci/golangci-lint-action action to v9 * Bump golangci-lint to 2.6.2 * Refactor to pass golangcli-lint * Fix tests --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dave Gallant <dave.gallant@gmail.com> Co-authored-by: Dave Gallant <davegallant@proton.me>
16 lines
273 B
Makefile
16 lines
273 B
Makefile
BIN ?= dist/vpngate
|
|
|
|
export CGO_ENABLED := 0
|
|
|
|
build: ## Builds the binary
|
|
go build -o $(BIN)
|
|
.PHONY: build
|
|
|
|
test: ## Run unit tests
|
|
go test -v ./...
|
|
.PHONY: test
|
|
|
|
lint: ## Run lint
|
|
@go get github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.6.2
|
|
golangci-lint run
|