Skip to content

Commit

Permalink
chore: added local lint target
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgallup authored Jul 25, 2024
1 parent 4afd737 commit 38f8d92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
BUILD_DIR=bin/
BINARY_NAME=ChangeThisToRepoName

build:
lint:
@echo "Lint check..."
golangci-lint run

build: lint
@echo "building ${BINARY_NAME}"
@cd src/ && go build -o "../$(BUILD_DIR)${BINARY_NAME}" ${buildargs}

Expand All @@ -22,5 +26,5 @@ clean:
@echo "Cleaning all targets for ${BINARY_NAME}"
rm -rf $(BUILD_DIR)

test:
test: lint
go test ./src -v -count=1 -timeout 0

0 comments on commit 38f8d92

Please sign in to comment.