Files
authentik-kubernetes-operator/Makefile
t.behrendt 2a091df8b9
CD / Build and push (amd64) (push) Successful in 1m31s
CD / Create tag (push) Successful in 12s
CD / Create manifest (push) Successful in 19s
ci: fix Makefile test (#10)
Reviewed-on: #10
Co-authored-by: Timo Behrendt <t.behrendt@t00n.de>
Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
2026-05-25 13:21:26 +02:00

41 lines
688 B
Makefile

ifneq (,$(wildcard ./.env))
include .env
export
endif
.PHONY: build run codegen build-image test test-unit test-coverage lint format check-format
build:
go build -o main
build-image:
docker build -t authentik-kubernetes-operator:latest .
run:
make build
./main --kubeconfig=/home/tbehrendt/.kube/config
codegen:
./scripts/codegen.sh
test: test-unit test-coverage
test-unit:
go test ./... -coverprofile=coverage.out
test-coverage:
go tool gcov2lcov -infile coverage.out > lcov.info
lint:
go vet ./...
format:
gofmt -w .
check-format:
@OUTPUT=$$(gofmt -l .); \
if [ -n "$$OUTPUT" ]; then \
echo "Formatter failed for:"; \
echo "$$OUTPUT"; \
exit 1; \
fi