.PHONY: build test test-integration lint clean coverage check-deps precommit

build:
	go build -o review-bot ./cmd/review-bot/

test:
	go test ./...

test-integration:
	go test -tags integration -v ./cmd/review-bot/

lint:
	go vet ./...

check-deps:
	@./scripts/check-deps.sh

clean:
	rm -f review-bot

coverage:
	go test -coverprofile=coverage.out ./...
	go tool cover -func=coverage.out

# Precommit runs all checks required before pushing
precommit: check-deps lint test
