.PHONY: build test test-unit test-integration test-all lint

build:
	go build ./...

# Default: unit tests only (no external dependencies).
# Run after every code change.
test: test-unit

test-unit:
	go test ./...

# Integration tests require:
#   - ansible-playbook in PATH
#   - ~/.ansibletui/inventory.yml
#   - ~/.ansibletui/playbooks/
# Run after every playbook change.
test-integration:
	go test -v -tags integration -timeout 120s ./test/integration/...

# Run everything.
test-all:
	go test -tags integration -timeout 300s ./...

lint:
	go vet ./...
