Skip to content

Commit

Permalink
Integration build tags
Browse files Browse the repository at this point in the history
  • Loading branch information
andreev-io committed Jan 23, 2025
1 parent b2edc2a commit ab9f10c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ tidy: ## Run `go mod tidy`.
go mod tidy -e

lint: ## Run linters.
@if ! command -v golangci-lint &> /dev/null && [ ! -f "$(GOBIN)/golangci-lint" ]; then \
@if ! command -v golangci-lint &> /dev/null && [ ! -x "$(GOBIN)/golangci-lint" ]; then \
echo "golangci-lint not found. Install it with 'make golangci-lint'"; \
exit 1; \
fi
golangci-lint run

vendor: ## Vendor dependencies.
go mod vendor -v
Expand All @@ -32,7 +33,7 @@ build: tidy lint vendor ## Build binaries (Linux only).
GOOS=linux go build -o bin/ ./...

test: tidy lint vendor ## Run unit tests (Linux only).
CGO_ENABLED=1 GOOS=linux go test -v -race -coverprofile cover.out $(go list ./... | grep -v integration) ./...
CGO_ENABLED=1 GOOS=linux go test -v -race -coverprofile cover.out -tags '!integration' ./...

docker-build: ## Build Docker image.
docker build \
Expand Down
3 changes: 3 additions & 0 deletions integration/e2e_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build integration
// +build integration

package integration

import (
Expand Down

0 comments on commit ab9f10c

Please sign in to comment.