From 60b2c3e51456f8d4a98e6024e518acd01070651c Mon Sep 17 00:00:00 2001 From: Justin Harms Date: Thu, 28 May 2026 20:29:36 -0500 Subject: [PATCH] Update Makefile to include linting in build, test, and test-race targets - Added `lint` as a prerequisite for the `build`, `test`, and `test-race` targets to ensure code quality checks are performed before executing tests and builds. - This enhancement promotes better code hygiene and consistency across the development workflow. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c1f5215..35534b3 100644 --- a/Makefile +++ b/Makefile @@ -4,14 +4,14 @@ run: ## Run the application (cross-platform; uses go run for dev on Linux/macOS/ run-debug: ## Run the application with debug logging (cross-platform) @go run . --log-level debug -build: deps ## Build a snapshot of the application for the current platform (uses -short for fast feedback) +build: deps lint ## Build a snapshot of the application for the current platform (uses -short for fast feedback) @go test -short -v ./... @goreleaser build --single-target --snapshot --clean -test: deps ## Run all tests +test: deps lint ## Run all tests @go test -shuffle=on -timeout=5m -v ./... -test-race: deps ## Run all tests with the race detector +test-race: deps lint ## Run all tests with the race detector @go test -race -shuffle=on -timeout=5m -v ./... lint: deps check-review-labels ## Run golangci-lint + review label hygiene check