a4c8fb91f6
Builds on initial v1 with: compliance job scheduling and result tracking, structured run history with findings/log storage, host-level drift details view, git-backed playbook/inventory support, and comprehensive test coverage across all packages. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
557 B
Makefile
27 lines
557 B
Makefile
.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 ./...
|